]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_h5: don't call kfree_skb() under spin_lock_irqsave()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 7 Dec 2022 02:18:32 +0000 (10:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:16 +0000 (11:41 +0100)
commit1336ed05c6453fd41f04ba14fb07d7f52c3737ee
tree523e1e134c650f3d8fca96e8e6fe41b24a157aca
parent0715a428752fc060c06343357306bb37ce64b583
Bluetooth: hci_h5: don't call kfree_skb() under spin_lock_irqsave()

[ Upstream commit 9a941a00f1c6e6da6323bb7a69fd1d88b16424e3 ]

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: dae41d0b3727 ("Bluetooth: Fix/implement Three-wire reliable packet sending")
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/hci_h5.c