net: compat_mmsghdr must be used in sys_recvmmsg
[safe/jmp/linux-2.6] / net / netrom / af_netrom.c
index 4bdd569..71604c6 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)