From: Eric W. Biederman Date: Sat, 15 Mar 2014 22:37:24 +0000 (-0700) Subject: bfin_mac: Call dev_consume_skb_any instead of dev_kfree_skb. X-Git-Tag: v4.14-rc1~7785^2~96^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21534d20fe6f7108f7f4eaaf47f138e20e6c85c9;p=platform%2Fkernel%2Flinux-rpi.git bfin_mac: Call dev_consume_skb_any instead of dev_kfree_skb. Replace dev_kfree_skb with dev_consume_skb_any in _tx_reclaim_skb that can be called in hard irq and other contexts. dev_consume_skb is used as _tx_reclaim_skb is called after a packet has been successfully transmitted. Signed-off-by: "Eric W. Biederman" --- diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c index 83a8cdb..95779b6 100644 --- a/drivers/net/ethernet/adi/bfin_mac.c +++ b/drivers/net/ethernet/adi/bfin_mac.c @@ -1087,7 +1087,7 @@ static inline void _tx_reclaim_skb(void) tx_list_head->desc_a.config &= ~DMAEN; tx_list_head->status.status_word = 0; if (tx_list_head->skb) { - dev_kfree_skb(tx_list_head->skb); + dev_consume_skb_any(tx_list_head->skb); tx_list_head->skb = NULL; } tx_list_head = tx_list_head->next;