[PATCH] iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe()

Yong Wu (吴勇) Yong.Wu at mediatek.com
Thu Dec 22 01:17:58 PST 2022


On Mon, 2022-12-19 at 19:06 +0100, Christophe JAILLET wrote:
> A clk, prepared and enabled in mtk_iommu_v1_hw_init(), is not
> released in
> the error handling path of mtk_iommu_v1_probe().
> 
> Add the corresponding clk_disable_unprepare(), as already done in the
> remove function.
> 
> Fixes: b17336c55d89 ("iommu/mediatek: add support for mtk iommu
> generation one HW")
> Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>

Reviewed-by: Yong Wu <yong.wu at mediatek.com>

Thanks.


More information about the linux-arm-kernel mailing list