]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: cw1200: Fix potential NULL dereference
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Oct 2024 22:06:53 +0000 (23:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:19 +0000 (13:53 +0100)
commit0ec90ac5f7bd9dd573bd5d964cbdc3beaa93a33e
tree52d54c4eec03838bc697ed9a1a0d5e96534ec9a2
parentc61e6e0fa5c69964af6b097ffa01cb252767b70d
wifi: cw1200: Fix potential NULL dereference

[ Upstream commit 2b94751626a6d49bbe42a19cc1503bd391016bd5 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/st/cw1200/cw1200_spi.c