]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: don't call kfree_skb() under spin_lock_irqsave()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 6 Dec 2022 12:59:10 +0000 (20:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:16 +0000 (11:41 +0100)
commit129210c1679e2f9391f339a942ecf4a58995883f
treef440535547f20d9c96a3e31ff17dfe3489ae5a79
parent54e702344d721f88d2085bc2849ef2d671e5f60a
Bluetooth: btusb: don't call kfree_skb() under spin_lock_irqsave()

[ Upstream commit 18b971db394781214aa1060789557dfbe32ca015 ]

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().

Fixes: 37763e7882bf ("Bluetooth: btusb: Implement driver internal packet reassembly")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/btusb.c