]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:28 +0000 (13:07 +0200)
commitb34d64e9aa5505e3c84570aed5c757f1839573e8
tree40c15b259122e1f91a663a972d83c3dc35eb363d
parent15df1981f0eda417a4a3b01640dc4a77e91fb8e9
wifi: rtw89: fix null pointer access when abort scan

[ Upstream commit 7e11a2966f51695c0af0b1f976a32d64dee243b2 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw89/mac80211.c