diff options
Diffstat (limited to 'net/can/af_can.c')
-rw-r--r-- | net/can/af_can.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c index 833bd838edc..f3067172886 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c | |||
@@ -126,7 +126,7 @@ static int can_create(struct net *net, struct socket *sock, int protocol, | |||
126 | if (protocol < 0 || protocol >= CAN_NPROTO) | 126 | if (protocol < 0 || protocol >= CAN_NPROTO) |
127 | return -EINVAL; | 127 | return -EINVAL; |
128 | 128 | ||
129 | if (net != &init_net) | 129 | if (!net_eq(net, &init_net)) |
130 | return -EAFNOSUPPORT; | 130 | return -EAFNOSUPPORT; |
131 | 131 | ||
132 | #ifdef CONFIG_MODULES | 132 | #ifdef CONFIG_MODULES |