mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
perf/arm_pmu_platform: Fix error handling
[ Upstream commit e338cb6bef
]
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: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/53031a607fc8412a60024bfb3bb8cd7141f998f5.1616774562.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
fe53f8fd64
commit
d95748f230
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue