]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/tipc/eth_media.c
[NET]: Make the device list and device lookups per namespace.
[mirror_ubuntu-zesty-kernel.git] / net / tipc / eth_media.c
index 406f0d26fa812a81d940e48826cbc00017745acc..d6fc0575816bd4a994ac70bd715487a7e3c3f397 100644 (file)
@@ -135,7 +135,7 @@ static int enable_bearer(struct tipc_bearer *tb_ptr)
 
        /* Find device with specified name */
 
-       for_each_netdev(pdev){
+       for_each_netdev(&init_net, pdev){
                if (!strncmp(pdev->name, driver_name, IFNAMSIZ)) {
                        dev = pdev;
                        break;