[NET]: Make the device list and device lookups per namespace.
[deliverable/linux.git] / net / ipv4 / fib_frontend.c
index 140bf7a8d8770c2bedd1bac0a23e4cc475d1950d..df17aab193b491d8f53eec28ca7d3de5883d5235 100644 (file)
@@ -334,7 +334,7 @@ static int rtentry_to_fib_config(int cmd, struct rtentry *rt,
                colon = strchr(devname, ':');
                if (colon)
                        *colon = 0;
-               dev = __dev_get_by_name(devname);
+               dev = __dev_get_by_name(&init_net, devname);
                if (!dev)
                        return -ENODEV;
                cfg->fc_oif = dev->ifindex;
This page took 0.026431 seconds and 5 git commands to generate.