![]() [ Upstream commit 582c1aeee0a9e73010cf1c4cef338709860deeb0 ]
pci_alloc_irq_vectors() allocates an irq vector. When devm_add_action()
fails, the irq vector is not freed, which leads to a memory leak.
Replace the devm_add_action with devm_add_action_or_reset to ensure
the irq vector can be destroyed when it fails.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
hisi_pcie_pmu.c | ||
hisi_uncore_cpa_pmu.c | ||
hisi_uncore_ddrc_pmu.c | ||
hisi_uncore_hha_pmu.c | ||
hisi_uncore_l3c_pmu.c | ||
hisi_uncore_pa_pmu.c | ||
hisi_uncore_pmu.c | ||
hisi_uncore_pmu.h | ||
hisi_uncore_sllc_pmu.c | ||
hisi_uncore_uc_pmu.c | ||
hns3_pmu.c |