]> err.no Git - linux-2.6/blobdiff - net/rose/af_rose.c
[NET] NETNS: Omit sock->sk_net without CONFIG_NET_NS.
[linux-2.6] / net / rose / af_rose.c
index 1a7f143cf741a2df3b81a44e22de3ffa4152574a..92d85c38e4d26d2f84f7acc9cf8a9cc2973bd902 100644 (file)
@@ -551,7 +551,7 @@ static struct sock *rose_make_new(struct sock *osk)
        if (osk->sk_type != SOCK_SEQPACKET)
                return NULL;
 
-       sk = sk_alloc(osk->sk_net, PF_ROSE, GFP_ATOMIC, &rose_proto);
+       sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto);
        if (sk == NULL)
                return NULL;