diff options
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r-- | net/bridge/br_if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 9272f12f664c..935784f736b3 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c | |||
@@ -303,7 +303,7 @@ int br_del_bridge(const char *name) | |||
303 | int ret = 0; | 303 | int ret = 0; |
304 | 304 | ||
305 | rtnl_lock(); | 305 | rtnl_lock(); |
306 | dev = __dev_get_by_name(name); | 306 | dev = __dev_get_by_name(&init_net, name); |
307 | if (dev == NULL) | 307 | if (dev == NULL) |
308 | ret = -ENXIO; /* Could not find device */ | 308 | ret = -ENXIO; /* Could not find device */ |
309 | 309 | ||
@@ -444,7 +444,7 @@ void __exit br_cleanup_bridges(void) | |||
444 | struct net_device *dev, *nxt; | 444 | struct net_device *dev, *nxt; |
445 | 445 | ||
446 | rtnl_lock(); | 446 | rtnl_lock(); |
447 | for_each_netdev_safe(dev, nxt) | 447 | for_each_netdev_safe(&init_net, dev, nxt) |
448 | if (dev->priv_flags & IFF_EBRIDGE) | 448 | if (dev->priv_flags & IFF_EBRIDGE) |
449 | del_br(dev->priv); | 449 | del_br(dev->priv); |
450 | rtnl_unlock(); | 450 | rtnl_unlock(); |