aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHao Chen <[email protected]>2024-04-25 20:46:27 +0800
committerWill Deacon <[email protected]>2024-04-28 08:49:31 +0100
commit582c1aeee0a9e73010cf1c4cef338709860deeb0 (patch)
treeb66f93aa8862e5c08fe7b44bfc1874723f922c44 /tools/perf/scripts/python/export-to-postgresql.py
parent81bdd60a3d1d3b05e6cc6674845afb1694dd3a0e (diff)
drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()
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: 66637ab137b4 ("drivers/perf: hisi: add driver for HNS3 PMU") Signed-off-by: Hao Chen <[email protected]> Signed-off-by: Junhao He <[email protected]> Reviewed-by: Jijie Shao <[email protected]> Acked-by: Jonathan Cameron <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions