]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtw88: access chip_info by const pointer
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 27 Jul 2022 06:52:32 +0000 (14:52 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 9 Aug 2022 05:48:59 +0000 (08:48 +0300)
commit590d627609789d370425b4bbf70130a9e51a1f6f
tree4ee45ec9cc4ade41ee976cc2899b20d50d0a8e32
parent0212971fa05ee550abc436dc768048be26ca799a
wifi: rtw88: access chip_info by const pointer

Since chip_info has became const table, we must access them via const
pointer to avoid invalid writing.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220727065232.28510-1-pkshih@realtek.com
14 files changed:
drivers/net/wireless/realtek/rtw88/bf.c
drivers/net/wireless/realtek/rtw88/coex.c
drivers/net/wireless/realtek/rtw88/coex.h
drivers/net/wireless/realtek/rtw88/efuse.c
drivers/net/wireless/realtek/rtw88/fw.c
drivers/net/wireless/realtek/rtw88/mac.c
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/pci.c
drivers/net/wireless/realtek/rtw88/phy.c
drivers/net/wireless/realtek/rtw88/phy.h
drivers/net/wireless/realtek/rtw88/tx.c
drivers/net/wireless/realtek/rtw88/util.c