diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-16 01:05:27 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-25 05:19:00 +0100 |
commit | 290a79dbf7b26677d1f4fef0b2a436910684b564 (patch) | |
tree | e51ee165e1a4dcef03f83852cc8e89bfc1e9c71a /drivers/net | |
parent | dmfe: Call dev_kfree/consume_skb_any instead of dev_kfree_skb. (diff) | |
download | linux-290a79dbf7b26677d1f4fef0b2a436910684b564.tar.xz linux-290a79dbf7b26677d1f4fef0b2a436910684b564.zip |
uli526x: Call dev_kfree/consume_skb_any instead of dev_kfree_skb.
Replace dev_kfree_skb with dev_kfree_skb_any in uli562x_start_xmit
that can be called in hard irq and other contexts, when the packet is
dropped.
Replace dev_kfree_skb with dev_consume_skb_any in uli562x_start_xmit
that can be called in hard irq and other contexts, when the packet is
transmitted.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/dec/tulip/uli526x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/dec/tulip/uli526x.c b/drivers/net/ethernet/dec/tulip/uli526x.c index aa4ee385091f..aa801a6af7b9 100644 --- a/drivers/net/ethernet/dec/tulip/uli526x.c +++ b/drivers/net/ethernet/dec/tulip/uli526x.c @@ -607,7 +607,7 @@ static netdev_tx_t uli526x_start_xmit(struct sk_buff *skb, /* Too large packet check */ if (skb->len > MAX_PACKET_SIZE) { netdev_err(dev, "big packet = %d\n", (u16)skb->len); - dev_kfree_skb(skb); + dev_kfree_skb_any(skb); return NETDEV_TX_OK; } @@ -648,7 +648,7 @@ static netdev_tx_t uli526x_start_xmit(struct sk_buff *skb, uw32(DCR7, db->cr7_data); /* free this SKB */ - dev_kfree_skb(skb); + dev_consume_skb_any(skb); return NETDEV_TX_OK; } |