Re: wifi: cw1200: Fix potential NULL dereference
From: Kalle Valo
Date: Wed Dec 18 2024 - 12:58:55 EST
Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:
> A recent refactoring was identified by smatch to cause another potential NULL
> dereference:
>
> drivers/net/wireless/st/cw1200/cw1200_spi.c:440 cw1200_spi_disconnect() error: we previously assumed 'self' could be null (see line 433)
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Closes: https://lore.kernel.org/r/202411271742.Xa7CNVh1-lkp@xxxxxxxxx/
> Fixes: 2719a9e7156c ("wifi: cw1200: Convert to GPIO descriptors")
> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Patch applied to wireless.git, thanks.
146b6057e1fd wifi: cw1200: Fix potential NULL dereference
--
https://patchwork.kernel.org/project/linux-wireless/patch/20241217-cw1200-fix-v1-1-911e6b5823ec@xxxxxxxxxx/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches