Skip to content
Snippets Groups Projects
Commit 2a8388f4 authored by Robin Murphy's avatar Robin Murphy Committed by Yang Yingliang
Browse files

perf/arm_pmu_platform: Fix error handling


stable inclusion
from linux-4.19.191
commit 213a9a13f0735212410312f61902a40ff065c477

--------------------------------

[ Upstream commit e338cb6bef254821a8c095018fd27254d74bfd6a ]

If we're aborting after failing to register the PMU device,
we probably don't want to leak the IRQs that we've claimed.

Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/53031a607fc8412a60024bfb3bb8cd7141f998f5.1616774562.git.robin.murphy@arm.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent d7b48b8c
No related branches found
No related tags found
No related merge requests found
......@@ -236,7 +236,7 @@ int arm_pmu_device_probe(struct platform_device *pdev,
ret = armpmu_register(pmu);
if (ret)
goto out_free;
goto out_free_irqs;
return 0;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment