]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/netrom/af_netrom.c
net: use net_eq to compare nets
[net-next-2.6.git] / net / netrom / af_netrom.c
index 4bdd5697f63b6a60a643b7c97b1690afd11f01ac..71604c6613b50d72247c1cd79e0dd78a5ac35e6e 100644 (file)
@@ -431,7 +431,7 @@ static int nr_create(struct net *net, struct socket *sock, int protocol,
        struct sock *sk;
        struct nr_sock *nr;
 
-       if (net != &init_net)
+       if (!net_eq(net, &init_net))
                return -EAFNOSUPPORT;
 
        if (sock->type != SOCK_SEQPACKET || protocol != 0)