Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171110
b: refs/heads/master
c: 05e8689
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 2, 2009
1 parent 877796e commit 9fae947
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3710becf8a58a5c6c4e797e3a3c968c161abdb41
refs/heads/master: 05e8689c9a3a208bf75b60662778d81e23eac460
6 changes: 4 additions & 2 deletions trunk/drivers/net/ifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ static void ri_tasklet(unsigned long dev)
stats->tx_packets++;
stats->tx_bytes +=skb->len;

skb->dev = dev_get_by_index(&init_net, skb->iif);
rcu_read_lock();
skb->dev = dev_get_by_index_rcu(&init_net, skb->iif);
if (!skb->dev) {
rcu_read_unlock();
dev_kfree_skb(skb);
stats->tx_dropped++;
break;
}
dev_put(skb->dev);
rcu_read_unlock();
skb->iif = _dev->ifindex;

if (from & AT_EGRESS) {
Expand Down

0 comments on commit 9fae947

Please sign in to comment.