linux/drivers/net/wireless/realtek
Po-Hao Huang 32621eb61b rtw88: 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/20220520081523.45987-1-pkshih@realtek.com
2022-05-30 14:03:22 +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: fix null vif pointer when hw_scan fails 2022-05-30 14:03:22 +03:00
rtw89 rtw89: sar: adjust and support SAR on 6GHz band 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