Skip to content

Commit f8ce49b

Browse files
spandruvadarafaeljw
authored andcommitted
thermal: intel: int340x: Free MSI IRQ vectors on module exit
On module exit call proc_thermal_free_msi() to free vectors allocated by pci_alloc_irq_vectors(). Fixes: 7a9a8c5 ("thermal: intel: int340x: Support MSI interrupt for Lunar Lake") Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Reviewed-by: Zhang Rui <rui.zhang@intel.com> Link: https://patch.msgid.link/20240723140228.865919-4-srinivas.pandruvada@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent b85a2d3 commit f8ce49b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ static void proc_thermal_pci_remove(struct pci_dev *pdev)
431431
proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_THRES_0, 0);
432432
proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_INT_ENABLE_0, 0);
433433

434+
if (msi_irq)
435+
proc_thermal_free_msi(pdev, pci_info);
436+
434437
thermal_zone_device_unregister(pci_info->tzone);
435438
proc_thermal_mmio_remove(pdev, pci_info->proc_priv);
436439
if (!pci_info->no_legacy)

0 commit comments

Comments
 (0)