]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipx/af_ipx.c
net: use net_eq to compare nets
[net-next-2.6.git] / net / ipx / af_ipx.c
index 975c5a366e55814f559f513727a179be065c293f..f9759b54a6debfca3d86830bb223fd250f7426ba 100644 (file)
@@ -1362,7 +1362,7 @@ static int ipx_create(struct net *net, struct socket *sock, int protocol,
        int rc = -ESOCKTNOSUPPORT;
        struct sock *sk;
 
-       if (net != &init_net)
+       if (!net_eq(net, &init_net))
                return -EAFNOSUPPORT;
 
        /*