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
netns: Use net_eq() to compare net-namespaces for optimization.
[pandora-kernel.git]
/
net
/
sctp
/
protocol.c
diff --git
a/net/sctp/protocol.c
b/net/sctp/protocol.c
index
ed9acff
..
a6e0818
100644
(file)
--- a/
net/sctp/protocol.c
+++ b/
net/sctp/protocol.c
@@
-668,7
+668,7
@@
static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev,
struct sctp_sockaddr_entry *temp;
int found = 0;
- if (
dev_net(ifa->ifa_dev->dev) != &init_net
)
+ if (
!net_eq(dev_net(ifa->ifa_dev->dev), &init_net)
)
return NOTIFY_DONE;
switch (ev) {