Commit 9e79d937 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Jiri Slaby

8139cp: Call dev_kfree_skby_any instead of kfree_skb.

commit 508f81d5 upstream.

Replace kfree_skb with dev_kfree_skb_any in cp_start_xmit
as it can be called in both hard irq and other contexts.
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent e9cd7c29
...@@ -899,7 +899,7 @@ static netdev_tx_t cp_start_xmit (struct sk_buff *skb, ...@@ -899,7 +899,7 @@ static netdev_tx_t cp_start_xmit (struct sk_buff *skb,
return NETDEV_TX_OK; return NETDEV_TX_OK;
out_dma_error: out_dma_error:
kfree_skb(skb); dev_kfree_skb_any(skb);
cp->dev->stats.tx_dropped++; cp->dev->stats.tx_dropped++;
goto out_unlock; goto out_unlock;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment