]> git.itanic.dy.fi Git - linux-stable/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:09:56 +0000 (13:09 +0200)
commit4f11c741908dab7dd48fa5a986b210d4fc74ca8d
treeb1ff6b8a4312a2baa2b076b20640fbd5607124c0
parent30c09fb0b46ec7eeb34ef7f2c6b851689d7d0682
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