]> www.infradead.org Git - users/jedix/linux-maple.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)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 26 Sep 2024 01:17:59 +0000 (09:17 +0800)
commit630d5d8f2bf6b340202b6bc2c05d794bbd8e4c1c
treeec1b5c467d4dcec189fb842ef0d88068200a4d56
parentaad0394e7a02fe933159be79d9d4595d2ad089dd
wifi: rtw89: check return value of ieee80211_probereq_get() for RNR

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
drivers/net/wireless/realtek/rtw89/fw.c