summaryrefslogtreecommitdiffstats
path: root/drivers/net/ifb.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-01-13 08:46:34 +0100
committerDavid S. Miller <davem@davemloft.net>2013-01-14 21:13:39 +0100
commit73bf0d0eecba15e2a2f96b1092554b01fc07044b (patch)
tree6c6b424e2107e1f71ac3e74075f1b89ecd622b94 /drivers/net/ifb.c
parentnet: phy: remove flags argument from phy_{attach, connect, connect_direct} (diff)
downloadlinux-73bf0d0eecba15e2a2f96b1092554b01fc07044b.tar.xz
linux-73bf0d0eecba15e2a2f96b1092554b01fc07044b.zip
ifb: dont hard code inet_net use
ifb should lookup devices in the appropriate namespace. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Cc: Benjamin LaHaise <bcrl@kvack.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ifb.c')
-rw-r--r--drivers/net/ifb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
index 344dceb1aaf9..82164381f778 100644
--- a/drivers/net/ifb.c
+++ b/drivers/net/ifb.c
@@ -90,7 +90,7 @@ static void ri_tasklet(unsigned long dev)
u64_stats_update_end(&dp->tsync);
rcu_read_lock();
- skb->dev = dev_get_by_index_rcu(&init_net, skb->skb_iif);
+ skb->dev = dev_get_by_index_rcu(dev_net(_dev), skb->skb_iif);
if (!skb->dev) {
rcu_read_unlock();
dev_kfree_skb(skb);