X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Fnet%2Finet_common.h;h=18c773286b91744ccf0447b60597db3acc353f9a;hb=6332178d91ca1a9dbd99bd97cabbcf965d178e9f;hp=d6238bdefbafe0d0c3d045bde0fc79931132042d;hpb=3d58b5fa8e4c461ab09afdacd3d1754fccca06ad;p=linux-2.6-omap-h63xx.git diff --git a/include/net/inet_common.h b/include/net/inet_common.h index d6238bdefba..18c773286b9 100644 --- a/include/net/inet_common.h +++ b/include/net/inet_common.h @@ -39,10 +39,16 @@ extern int inet_getname(struct socket *sock, extern int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); -extern int inet_ctl_sock_create(struct socket **sock, +extern int inet_ctl_sock_create(struct sock **sk, unsigned short family, unsigned short type, - unsigned char protocol); + unsigned char protocol, + struct net *net); + +static inline void inet_ctl_sock_destroy(struct sock *sk) +{ + sk_release_kernel(sk); +} #endif