Skip to content

Commit

Permalink
ifb: dont hard code inet_net use
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jan 14, 2013
1 parent f9a8f83 commit 73bf0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 73bf0d0

Please sign in to comment.