linux/drivers/net/wireless/realtek
Po Hao Huang 6d7d1fef3f rtw89: fix null vif pointer when hw_scan fails
Add this check to avoid crash by dereferencing a null pointer. When hwscan
fails due to no memory or dma failure, the scan flag in ieee80211_local is
cleared. So mac80211 determine that it's not hw_scan then calls
sw_scan_complete() with null vif, which is also freed during the fail.

Signed-off-by: Po Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220520071731.38563-3-pkshih@realtek.com
2022-05-30 12:35:58 +03:00
..
rtl8xxxu mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
rtl818x rtl818x: Prevent using not initialized queues 2022-04-27 08:02:46 +03:00
rtlwifi rtlwifi: Use pr_warn instead of WARN_ONCE 2022-05-13 09:19:44 +03:00
rtw88 rtw88: adjust adaptivity option to 1 2022-05-09 14:40:37 +03:00
rtw89 rtw89: fix null vif pointer when hw_scan fails 2022-05-30 12:35:58 +03:00
Kconfig rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00
Makefile rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00