]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtw89: debug: avoid invalid access on RTW89_DBG_SEL_MAC_30
authorZong-Zhe Yang <kevin_yang@realtek.com>
Thu, 19 Jan 2023 06:35:28 +0000 (14:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:53 +0000 (09:33 +0100)
commit6fdcd24505fc6ba2c4875390557290117da725b9
tree3325d29f8032bbc4ba628e5cfe24a2e83bdc9064
parenteb15ef9de993ff42889d27a5ec6a633f2d316d92
wifi: rtw89: debug: avoid invalid access on RTW89_DBG_SEL_MAC_30

[ Upstream commit 55437eee68647e0bc04680e22c9cb628ba210183 ]

Only 8852C chip has valid pages on RTW89_DBG_SEL_MAC_30. To other chips,
this section is an address hole. It will lead to crash if trying to access
this section on chips except for 8852C. So, we avoid that.

Signed-off-by: Zong-Zhe Yang <kevin_yang@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/20230119063529.61563-2-pkshih@realtek.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw89/debug.c