Re: [PATCH V2] spi: spi-cadence-quadspi: Fix missing unwind goto warnings

From: Dan Carpenter
Date: Thu Sep 21 2023 - 15:59:20 EST


On Tue, Sep 19, 2023 at 01:16:59PM +0530, Dhruva Gole wrote:
> The following smatch warnings [0] were recently introduced:
>
> drivers/spi/spi-cadence-quadspi.c:1882 cqspi_probe() warn: missing
> unwind goto?
>
> Fix these warnings by releasing dma channel and adding a goto fail probe.
>
> [0] https://lore.kernel.org/all/5e21c351-cd08-443e-8509-aecf242a4da9@kadam.mountain/

Really this should be the Closes: link. I should edit the zero day
bot emails to send the correct link.

That's going to be slightly more complicated than you might assume...

I'm travelling now so I won't do it today.

regards,
dan carpenter

>
> Fixes: 0578a6dbfe75 ("spi: spi-cadence-quadspi: add runtime pm support")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Closes: https://lore.kernel.org/r/202309140543.03dMbMM5-lkp@xxxxxxxxx/
> Signed-off-by: Dhruva Gole <d-gole@xxxxxx>
> ---
>
> Link to V1:
> https://lore.kernel.org/all/20230915123103.2493640-1-d-gole@xxxxxx/
>