misc: st_core: Do not call kfree_skb() under spin_lock_irqsave()
authorJinjie Ruan <ruanjinjie@huawei.com>
Wed, 23 Aug 2023 03:50:20 +0000 (11:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:52:10 +0000 (11:52 +0100)
commit06a1286345ac01fc762fe5f863bfca4bee93c497
tree6a90777042a07a35133dd33cd196c76e02f3ae6c
parentfc968818d547fd2f47ea992405575a57af9b5420
misc: st_core: Do not call kfree_skb() under spin_lock_irqsave()

[ Upstream commit 4d08c3d12b61022501989f9f071514d2d6f77c47 ]

It is not allowed to call kfree_skb() from hardware interrupt
context or with hardware interrupts being disabled.
So replace kfree_skb() with dev_kfree_skb_irq() under
spin_lock_irqsave(). Compile tested only.

Fixes: 53618cc1e51e ("Staging: sources for ST core")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230823035020.1281892-1-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/ti-st/st_core.c