aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/af_decnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/decnet/af_decnet.c')
-rw-r--r--net/decnet/af_decnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c
index 9ade3a6de954..2b494fac9468 100644
--- a/net/decnet/af_decnet.c
+++ b/net/decnet/af_decnet.c
@@ -680,7 +680,7 @@ static int dn_create(struct net *net, struct socket *sock, int protocol,
680{ 680{
681 struct sock *sk; 681 struct sock *sk;
682 682
683 if (net != &init_net) 683 if (!net_eq(net, &init_net))
684 return -EAFNOSUPPORT; 684 return -EAFNOSUPPORT;
685 685
686 switch(sock->type) { 686 switch(sock->type) {