wifi: wl3501_cs: don't call kfree_skb() under spin_lock_irqsave()
[ Upstream commit44bacbdf90] It is not allowed to call kfree_skb() from hardware interrupt context or with interrupts being disabled. So replace kfree_skb() with dev_kfree_skb_irq() under spin_lock_irqsave(). Compile tested only. Fixes:1da177e4c3("Linux-2.6.12-rc2") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20221207150453.114742-1-yangyingliang@huawei.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
93b8809be5
commit
f6e429cde9
@@ -1330,7 +1330,7 @@ static netdev_tx_t wl3501_hard_start_xmit(struct sk_buff *skb,
|
|||||||
} else {
|
} else {
|
||||||
++dev->stats.tx_packets;
|
++dev->stats.tx_packets;
|
||||||
dev->stats.tx_bytes += skb->len;
|
dev->stats.tx_bytes += skb->len;
|
||||||
kfree_skb(skb);
|
dev_kfree_skb_irq(skb);
|
||||||
|
|
||||||
if (this->tx_buffer_cnt < 2)
|
if (this->tx_buffer_cnt < 2)
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
|
|||||||
Reference in New Issue
Block a user