diff options
Diffstat (limited to 'net/rose/af_rose.c')
-rw-r--r-- | net/rose/af_rose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index 1a7f143cf741..92d85c38e4d2 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -551,7 +551,7 @@ static struct sock *rose_make_new(struct sock *osk) | |||
551 | if (osk->sk_type != SOCK_SEQPACKET) | 551 | if (osk->sk_type != SOCK_SEQPACKET) |
552 | return NULL; | 552 | return NULL; |
553 | 553 | ||
554 | sk = sk_alloc(osk->sk_net, PF_ROSE, GFP_ATOMIC, &rose_proto); | 554 | sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto); |
555 | if (sk == NULL) | 555 | if (sk == NULL) |
556 | return NULL; | 556 | return NULL; |
557 | 557 | ||