]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7921: fix possible AOOB issue in mt7921_mcu_tx_rate_report
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 23 Apr 2021 14:27:09 +0000 (16:27 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 15 May 2021 11:40:58 +0000 (14:40 +0300)
commitd874e6c06952382897d35bf4094193cd44ae91bd
treeb3322e206d6924c91de7108ecefc70489805024e
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
mt76: mt7921: fix possible AOOB issue in mt7921_mcu_tx_rate_report

Fix possible array out of bound access in mt7921_mcu_tx_rate_report.
Remove unnecessary varibable in mt7921_mcu_tx_rate_report

Fixes: 1c099ab44727c ("mt76: mt7921: add MCU support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/91a1e8f6b6a3e6a929de560ed68132f6eb421720.1619187875.git.lorenzo@kernel.org
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c