diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-05-13 06:20:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-14 20:39:33 +0300 |
commit | fa787ae0624c46d0c894c19ae74f53d7bb4406f8 (patch) | |
tree | f570f6fe3e57901c0c23d3074e096a10024e2cfa /net/tipc | |
parent | dd3aa3b5fbf61adb0ef5d44a6753646b767b9c77 (diff) | |
download | linux-fa787ae0624c46d0c894c19ae74f53d7bb4406f8.tar.xz |
tipc: use sock_create_kern interface to create kernel socket
After commit eeb1bd5c40ed ("net: Add a struct net parameter to
sock_create_kern"), we should use sock_create_kern() to create kernel
socket as the interface doesn't reference count struct net any more.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/server.c b/net/tipc/server.c index a91a2f79209a..922e04a43396 100644 --- a/net/tipc/server.c +++ b/net/tipc/server.c @@ -325,7 +325,7 @@ static struct socket *tipc_create_listen_sock(struct tipc_conn *con) struct socket *sock = NULL; int ret; - ret = __sock_create(s->net, AF_TIPC, SOCK_SEQPACKET, 0, &sock, 1); + ret = sock_create_kern(s->net, AF_TIPC, SOCK_SEQPACKET, 0, &sock); if (ret < 0) return NULL; ret = kernel_setsockopt(sock, SOL_TIPC, TIPC_IMPORTANCE, |