aboutsummaryrefslogtreecommitdiff
path: root/crypto/crc64_rocksoft_generic.c
diff options
context:
space:
mode:
authorGravatar Hao Chen <chenhao418@huawei.com> 2024-04-25 20:46:27 +0800
committerGravatar Will Deacon <will@kernel.org> 2024-04-28 08:49:31 +0100
commit582c1aeee0a9e73010cf1c4cef338709860deeb0 (patch)
treeb66f93aa8862e5c08fe7b44bfc1874723f922c44 /crypto/crc64_rocksoft_generic.c
parentdrivers/perf: hisi: hns3: Fix out-of-bound access when valid event group (diff)
downloadlinux-582c1aeee0a9e73010cf1c4cef338709860deeb0.tar.gz
linux-582c1aeee0a9e73010cf1c4cef338709860deeb0.tar.bz2
linux-582c1aeee0a9e73010cf1c4cef338709860deeb0.zip
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 <chenhao418@huawei.com> Signed-off-by: Junhao He <hejunhao3@huawei.com> Reviewed-by: Jijie Shao <shaojijie@huawei.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240425124627.13764-4-hejunhao3@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'crypto/crc64_rocksoft_generic.c')
0 files changed, 0 insertions, 0 deletions