diff options
Diffstat (limited to 'net/bridge/br_notify.c')
-rw-r--r-- | net/bridge/br_notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_notify.c b/net/bridge/br_notify.c index 07ac3ae68d8f..00644a544e3c 100644 --- a/net/bridge/br_notify.c +++ b/net/bridge/br_notify.c | |||
@@ -37,7 +37,7 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v | |||
37 | struct net_bridge_port *p = dev->br_port; | 37 | struct net_bridge_port *p = dev->br_port; |
38 | struct net_bridge *br; | 38 | struct net_bridge *br; |
39 | 39 | ||
40 | if (dev->nd_net != &init_net) | 40 | if (dev_net(dev) != &init_net) |
41 | return NOTIFY_DONE; | 41 | return NOTIFY_DONE; |
42 | 42 | ||
43 | /* not a port of a bridge */ | 43 | /* not a port of a bridge */ |