mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
spi: spi-rockchip: Fix missing unwind goto in rockchip_sfc_probe()
[ Upstream commit359f5b0d4e] If devm_request_irq() fails, then we are directly return 'ret' without clk_disable_unprepare(sfc->clk) and clk_disable_unprepare(sfc->hclk). Fix this by changing direct return to a goto 'err_irq'. Fixes:0b89fc0a36("spi: rockchip-sfc: add rockchip serial flash controller") Signed-off-by: Li Lanzhe <u202212060@hust.edu.cn> Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn> Link: https://lore.kernel.org/r/20230419115030.6029-1-u202212060@hust.edu.cn Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cbce626dcd
commit
25e50cdf9f
@@ -634,7 +634,7 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to request irq\n");
|
||||
|
||||
return ret;
|
||||
goto err_irq;
|
||||
}
|
||||
|
||||
ret = rockchip_sfc_init(sfc);
|
||||
|
||||
Reference in New Issue
Block a user