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 4de4287fec37..8feb9e5d6623 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -518,7 +518,7 @@ static int rose_create(struct net *net, struct socket *sock, int protocol, | |||
518 | struct sock *sk; | 518 | struct sock *sk; |
519 | struct rose_sock *rose; | 519 | struct rose_sock *rose; |
520 | 520 | ||
521 | if (net != &init_net) | 521 | if (!net_eq(net, &init_net)) |
522 | return -EAFNOSUPPORT; | 522 | return -EAFNOSUPPORT; |
523 | 523 | ||
524 | if (sock->type != SOCK_SEQPACKET || protocol != 0) | 524 | if (sock->type != SOCK_SEQPACKET || protocol != 0) |