aboutsummaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
Diffstat (limited to 'net/can')
-rw-r--r--net/can/af_can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c
index 833bd838edc6..f30671728864 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