diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-16 02:48:50 +0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-25 08:18:53 +0400 |
commit | 37392c7b84144ba72b185682791d4a4ad084de28 (patch) | |
tree | d94c99641ee3d0973186fbf2d174bbef20010ad2 /drivers/net/ethernet/amd/7990.c | |
parent | e21106b41209c57d0138b43732d623595d529455 (diff) | |
download | linux-37392c7b84144ba72b185682791d4a4ad084de28.tar.xz |
lance: Call dev_consume_skb_any instead of dev_kfree_skb.
Replace dev_kfree_skb with dev_consume_skb_any in lance_start_xmit
that can be called in hard irq and other contexts.
dev_consume_skb_any is used as lance_start_xmit always immediately
consumes the skb.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'drivers/net/ethernet/amd/7990.c')
-rw-r--r-- | drivers/net/ethernet/amd/7990.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/7990.c b/drivers/net/ethernet/amd/7990.c index 18e542f7853d..98a10d555b79 100644 --- a/drivers/net/ethernet/amd/7990.c +++ b/drivers/net/ethernet/amd/7990.c @@ -578,7 +578,7 @@ int lance_start_xmit(struct sk_buff *skb, struct net_device *dev) outs++; /* Kick the lance: transmit now */ WRITERDP(lp, LE_C0_INEA | LE_C0_TDMD); - dev_kfree_skb(skb); + dev_consume_skb_any(skb); spin_lock_irqsave(&lp->devlock, flags); if (TX_BUFFS_AVAIL) |