diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-15 21:33:04 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-25 00:19:23 -0400 |
commit | 979de8a09a00228017e8ad1bc9d6ebc60b51bee9 (patch) | |
tree | 21143022ed439c951ac5c8262b45d88c56202ab3 /drivers/net/xen-netfront.c | |
parent | b1b718173a64470b6f04261146c0b369004a4346 (diff) |
xen-netfront: Call dev_kfree_skb_any instead of dev_kfree_skb.
Replace dev_kfree_skb with dev_kfree_skb_any in xennet_start_xmit
which can be called in hard irq and other contexts. xennet_start_xmit
only fress skbs which it drops.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 49f3b3dbbed8..057b05700f8b 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -658,7 +658,7 @@ static int xennet_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
658 | 658 | ||
659 | drop: | 659 | drop: |
660 | dev->stats.tx_dropped++; | 660 | dev->stats.tx_dropped++; |
661 | dev_kfree_skb(skb); | 661 | dev_kfree_skb_any(skb); |
662 | return NETDEV_TX_OK; | 662 | return NETDEV_TX_OK; |
663 | } | 663 | } |
664 | 664 | ||