Re: [PATCH] spi: zynq-qspi: Add check for clk_enable()
From: Mark Brown
Date: Mon Dec 09 2024 - 08:08:44 EST
On Fri, Dec 06, 2024 at 08:32:58PM -0500, Mingwei Zheng wrote:
> - clk_enable(qspi->refclk);
> - clk_enable(qspi->pclk);
> + ret = clk_enable(qspi->refclk);
> + if (ret)
> + return ret;
> +
> + ret = clk_enable(qspi->pclk);
> + if (ret)
> + return ret;
The second check leaks the first enable.
Attachment:
signature.asc
Description: PGP signature