mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
Bluetooth: btintel_pcie: Fix irq leak
Free irq before releasing irq vector.
Fixes: c2b636b3f7
("Bluetooth: btintel_pcie: Add support for PCIe transport")
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
17813af565
commit
041677e7aa
@ -1329,6 +1329,12 @@ static void btintel_pcie_remove(struct pci_dev *pdev)
|
||||
data = pci_get_drvdata(pdev);
|
||||
|
||||
btintel_pcie_reset_bt(data);
|
||||
for (int i = 0; i < data->alloc_vecs; i++) {
|
||||
struct msix_entry *msix_entry;
|
||||
|
||||
msix_entry = &data->msix_entries[i];
|
||||
free_irq(msix_entry->vector, msix_entry);
|
||||
}
|
||||
|
||||
pci_free_irq_vectors(pdev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user