aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoecmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/aoe/aoecmd.c')
-rw-r--r--drivers/block/aoe/aoecmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 01fbdd38e3be..30394f78cac2 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -9,6 +9,7 @@
9#include <linux/skbuff.h> 9#include <linux/skbuff.h>
10#include <linux/netdevice.h> 10#include <linux/netdevice.h>
11#include <linux/genhd.h> 11#include <linux/genhd.h>
12#include <net/net_namespace.h>
12#include <asm/unaligned.h> 13#include <asm/unaligned.h>
13#include "aoe.h" 14#include "aoe.h"
14 15
@@ -194,7 +195,7 @@ aoecmd_cfg_pkts(ushort aoemajor, unsigned char aoeminor, struct sk_buff **tail)
194 sl = sl_tail = NULL; 195 sl = sl_tail = NULL;
195 196
196 read_lock(&dev_base_lock); 197 read_lock(&dev_base_lock);
197 for_each_netdev(ifp) { 198 for_each_netdev(&init_net, ifp) {
198 dev_hold(ifp); 199 dev_hold(ifp);
199 if (!is_aoe_netif(ifp)) 200 if (!is_aoe_netif(ifp))
200 goto cont; 201 goto cont;