Skip to content

Commit

Permalink
perf/arm_pmu_platform: Fix error handling
Browse files Browse the repository at this point in the history
[ Upstream commit e338cb6 ]

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>
  • Loading branch information
rmurphy-arm authored and gregkh committed May 12, 2021
1 parent bf6a8d1 commit 16839bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/perf/arm_pmu_platform.c
Expand Up @@ -235,7 +235,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;

Expand Down

0 comments on commit 16839bc

Please sign in to comment.