From 8f458f783dfbb19c1f1cb58ed06eeb701f52091b Mon Sep 17 00:00:00 2001
From: Yang Yingliang <yangyingliang@huawei.com>
Date: Wed, 7 Dec 2022 10:18:31 +0800
Subject: [PATCH] Bluetooth: hci_ll: don't call kfree_skb() under
spin_lock_irqsave()
Git-commit: 8f458f783dfbb19c1f1cb58ed06eeb701f52091b
References: git-fixes
Patch-mainline: v6.2-rc1
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: 166d2f6a4332 ("[Bluetooth] Add UART driver for Texas Instruments' BRF63xx chips")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
drivers/bluetooth/hci_ll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/bluetooth/hci_ll.c
+++ b/drivers/bluetooth/hci_ll.c
@@ -364,7 +364,7 @@ static int ll_enqueue(struct hci_uart *h
break;
default:
BT_ERR("illegal hcill state: %ld (losing packet)", ll->hcill_state);
- kfree_skb(skb);
+ dev_kfree_skb_irq(skb);
break;
}