Bluetooth: btusb: Do not call kfree_skb() under spin_lock_irqsave()
authorJinjie Ruan <ruanjinjie@huawei.com>
Wed, 23 Aug 2023 03:46:37 +0000 (11:46 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 24 Aug 2023 19:24:37 +0000 (12:24 -0700)
commit2a05334d7f91ff189692089c05fc48cc1d8204de
tree16338f75d42cfe90056b035c0ca6bc25214ff577
parentd831e3612111d385e8629104af5429808ef26e25
Bluetooth: btusb: Do not call kfree_skb() under spin_lock_irqsave()

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: baac6276c0a9 ("Bluetooth: btusb: handle mSBC audio over USB Endpoints")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c