[PATCH] Bluetooth: btintel_pcie: fix memory leak in btintel_pcie_probe()
From: Abdun Nihaal
Date: Fri Jul 10 2026 - 02:04:38 EST
The memory allocated for data->workqueue is not free in some of the
error paths. Fix that by adding the corresponding free function.
Fixes: c2b636b3f788 ("Bluetooth: btintel_pcie: Add support for PCIe transport")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>
---
Compile tested only. Issue found using static analysis.
drivers/bluetooth/btintel_pcie.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c
index 7a87549f587d..870939d8450b 100644
--- a/drivers/bluetooth/btintel_pcie.c
+++ b/drivers/bluetooth/btintel_pcie.c
@@ -2988,6 +2988,7 @@ static int btintel_pcie_probe(struct pci_dev *pdev,
btintel_pcie_reset_bt(data);
destroy_workqueue(data->dump_workqueue);
+ destroy_workqueue(data->workqueue);
pci_clear_master(pdev);
--
2.43.0