wifi: rtw89: fix null pointer access when abort scan
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 19 Jan 2024 08:14:58 +0000 (16:14 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 23 Jan 2024 11:38:15 +0000 (13:38 +0200)
commit7e11a2966f51695c0af0b1f976a32d64dee243b2
tree6fb45195710b515afa421d3bfabd9719053c7ba1
parentdab2b8c41db2e1756ec9d52d211beb58a00e1400
wifi: rtw89: fix null pointer access when abort scan

During cancel scan we might use vif that weren't scanning.
Fix this by using the actual scanning vif.

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://msgid.link/20240119081501.25223-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac80211.c