From: Eric Dumazet Date: Sun, 13 Jan 2013 07:46:34 +0000 (+0000) Subject: ifb: dont hard code inet_net use X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73bf0d0eecba15e2a2f96b1092554b01fc07044b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ifb: dont hard code inet_net use ifb should lookup devices in the appropriate namespace. Signed-off-by: Eric Dumazet Acked-by: Jamal Hadi Salim Cc: Benjamin LaHaise Signed-off-by: David S. Miller --- 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);