aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r--net/tipc/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index d00c2119faf3..eca5eb0dab08 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -195,7 +195,7 @@ static int tipc_create(struct net *net, struct socket *sock, int protocol,
195 195
196 /* Validate arguments */ 196 /* Validate arguments */
197 197
198 if (net != &init_net) 198 if (!net_eq(net, &init_net))
199 return -EAFNOSUPPORT; 199 return -EAFNOSUPPORT;
200 200
201 if (unlikely(protocol != 0)) 201 if (unlikely(protocol != 0))