bridge: Fix br_forward crash in promiscuous mode
[safe/jmp/linux-2.6] / net / ipx / af_ipx.c
index 975c5a3..f9759b5 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;
 
        /*