wifi: cw1200: Fix potential NULL dereference
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Oct 2024 22:06:53 +0000 (23:06 +0100)
committerKalle Valo <kvalo@kernel.org>
Thu, 31 Oct 2024 14:20:02 +0000 (16:20 +0200)
commit2b94751626a6d49bbe42a19cc1503bd391016bd5
tree3b1ad8384cd8fd041132b0dd935dddd177628e9c
parent1e52d0061a8375dab8ae2627a001bf94d95ef3d4
wifi: cw1200: Fix potential NULL dereference

A recent refactoring was identified by static analysis to
cause a potential NULL dereference, fix this!

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202410121505.nyghqEkK-lkp@intel.com/
Fixes: 2719a9e7156c ("wifi: cw1200: Convert to GPIO descriptors")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241028-cw1200-fix-v1-1-e092b6558d1e@linaro.org
drivers/net/wireless/st/cw1200/cw1200_spi.c