[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6931079.K2JlShyGXD@diego>
Date: Mon, 17 Apr 2023 10:20:56 +0200
From: Heiko Stübner <heiko@...ech.de>
To: Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>,
Marc Zyngier <maz@...nel.org>, Olof Johansson <olof@...om.net>,
Chao Wang <D202280639@...t.edu.cn>
Cc: hust-os-kernel-patches@...glegroups.com,
Chao Wang <D202280639@...t.edu.cn>,
Dongliang Mu <dzm91@...t.edu.cn>, iommu@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iommu: Fix unwind goto issue
Am Montag, 17. April 2023, 05:04:21 CEST schrieb Chao Wang:
> 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 <D202280639@...t.edu.cn>
> Reviewed-by: Dongliang Mu <dzm91@...t.edu.cn>
Looking at the code, that makes a lot of sense.
Reviewed-by: Heiko Stuebner <heiko@...ech.de>
Powered by blists - more mailing lists