]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: rtw89: check return value of ieee80211_probereq_get() for RNR
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 19 Sep 2024 08:12:14 +0000 (16:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:43 +0000 (20:03 +0100)
commit7296e5611adb2c619bd7bd3817ddde7ba865ef17
tree0eeb83db872985a9332a4800601f606344a59dc5
parentf2a107b536494c723a14979678be2c1b8eeb29ef
wifi: rtw89: check return value of ieee80211_probereq_get() for RNR

[ Upstream commit 630d5d8f2bf6b340202b6bc2c05d794bbd8e4c1c ]

The return value of ieee80211_probereq_get() might be NULL, so check it
before using to avoid NULL pointer access.

Addresses-Coverity-ID: 1529805 ("Dereference null return value")

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240919081216.28505-2-pkshih@realtek.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw89/fw.c