[NET]: Make the device list and device lookups per namespace.
[deliverable/linux.git] / arch / sparc64 / solaris / ioctl.c
index 18352a49862842f6e6f432b1799b5370139e3358..8ad10a6d993bacc5821f3c15e308202ca82514c8 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/compat.h>
 
 #include <net/sock.h>
+#include <net/net_namespace.h>
 
 #include <asm/uaccess.h>
 #include <asm/termios.h>
@@ -686,7 +687,7 @@ static inline int solaris_i(unsigned int fd, unsigned int cmd, u32 arg)
                        int i = 0;
                        
                        read_lock_bh(&dev_base_lock);
-                       for_each_netdev(d)
+                       for_each_netdev(&init_net, d)
                                i++;
                        read_unlock_bh(&dev_base_lock);
 
This page took 0.024315 seconds and 5 git commands to generate.