git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: use net_eq to compare nets
[pandora-kernel.git]
/
net
/
can
/
af_can.c
diff --git
a/net/can/af_can.c
b/net/can/af_can.c
index
833bd83
..
f306717
100644
(file)
--- 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,
if (protocol < 0 || protocol >= CAN_NPROTO)
return -EINVAL;
- if (
net != &init_net
)
+ if (
!net_eq(net, &init_net)
)
return -EAFNOSUPPORT;
#ifdef CONFIG_MODULES