Skip to content

Commit

Permalink
sc92031: Call dev_consume_skb_any instead of dev_kfree_skb.
Browse files Browse the repository at this point in the history
Replace dev_kfree_skb with dev_consume_skb_any in sc92031_start_xmit
that can be called in hard irq and other contexts.

Using dev_consume_skb_any preserves the current semantics (as
dev_kfree_skb is just consume_skb) and since packet drops
are rare is usually accurate.

Signed-off-by: "Eric W. Biederman" <[email protected]>
  • Loading branch information
ebiederm committed Mar 25, 2014
1 parent 1616566 commit 9ebeac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/silan/sc92031.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ static netdev_tx_t sc92031_start_xmit(struct sk_buff *skb,
spin_unlock(&priv->lock);

out:
dev_kfree_skb(skb);
dev_consume_skb_any(skb);

return NETDEV_TX_OK;
}
Expand Down

0 comments on commit 9ebeac5

Please sign in to comment.