aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorChao Wang <[email protected]>2023-04-17 03:04:21 +0000
committerJoerg Roedel <[email protected]>2023-05-22 17:03:08 +0200
commitec014683c564fb74fc68e8f5e84691d3b3839d24 (patch)
treec8f4157e4c93819cbc283b0ce7f176cd03cd96dd /tools/perf/scripts/python/stackcollapse.py
parente332003bb216a9f91e08004b9e2de0745f321290 (diff)
iommu/rockchip: Fix unwind goto issue
Smatch complains that drivers/iommu/rockchip-iommu.c:1306 rk_iommu_probe() warn: missing unwind goto? The rk_iommu_probe function, after obtaining the irq value through platform_get_irq, directly returns an error if the returned value is negative, without releasing any resources. Fix this by adding a new error handling label "err_pm_disable" and use a goto statement to redirect to the error handling process. In order to preserve the original semantics, set err to the value of irq. Fixes: 1aa55ca9b14a ("iommu/rockchip: Move irq request past pm_runtime_enable") Signed-off-by: Chao Wang <[email protected]> Reviewed-by: Dongliang Mu <[email protected]> Reviewed-by: Heiko Stuebner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions