wifi: libertas: cmdresp: don't call kfree_skb() under spin_lock_irqsave()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 7 Dec 2022 15:00:08 +0000 (23:00 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 22 Dec 2022 16:12:38 +0000 (18:12 +0200)
commit708a49a64237f19bd404852f297aaadbc9e7fee0
treea2ab17d79bd4ff774eec4c7b2a36deb64b861f6c
parentf393df151540bf858effbd29ff572ab94e76a4c4
wifi: libertas: cmdresp: don't call kfree_skb() under spin_lock_irqsave()

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: f52b041aed77 ("libertas: Add spinlock to avoid race condition")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221207150008.111743-5-yangyingliang@huawei.com
drivers/net/wireless/marvell/libertas/cmdresp.c