* [PATCH net-next] tipc: use sock_create_kern interface to create kernel socket
@ 2015-05-13 3:20 Ying Xue
2015-05-14 17:39 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ying Xue @ 2015-05-13 3:20 UTC (permalink / raw)
To: davem; +Cc: jon.maloy, erik.hugne, netdev, tipc-discussion
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>
---
net/tipc/server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/tipc/server.c b/net/tipc/server.c
index a91a2f7..922e04a 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,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] tipc: use sock_create_kern interface to create kernel socket
2015-05-13 3:20 [PATCH net-next] tipc: use sock_create_kern interface to create kernel socket Ying Xue
@ 2015-05-14 17:39 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-05-14 17:39 UTC (permalink / raw)
To: ying.xue; +Cc: jon.maloy, netdev, tipc-discussion
From: Ying Xue <ying.xue@windriver.com>
Date: Wed, 13 May 2015 11:20:38 +0800
> 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>
Applied, thank you.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-14 17:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 3:20 [PATCH net-next] tipc: use sock_create_kern interface to create kernel socket Ying Xue
2015-05-14 17:39 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).