]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ifb: dont hard code inet_net use
authorEric Dumazet <edumazet@google.com>
Sun, 13 Jan 2013 07:46:34 +0000 (07:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jan 2013 20:13:39 +0000 (15:13 -0500)
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>
drivers/net/ifb.c

index 344dceb1aaf9e70d3c36540d1ea2b62524fba368..82164381f778fb604b07f5cc2956a16e76d3f563 100644 (file)
@@ -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);