Skip to content

Commit 2c9c2d1

Browse files
Ping-Ke Shihgregkh
authored andcommitted
wifi: rtw89: remove unused C2H event ID RTW89_MAC_C2H_FUNC_READ_WOW_CAM to prevent out-of-bounds reading
[ Upstream commit 56310dd ] The handler of firmware C2H event RTW89_MAC_C2H_FUNC_READ_WOW_CAM isn't implemented, but driver expects number of handlers is NUM_OF_RTW89_MAC_C2H_FUNC_WOW causing out-of-bounds access. Fix it by removing ID. Addresses-Coverity-ID: 1598775 ("Out-of-bounds read") Fixes: ff53fce ("wifi: rtw89: wow: update latest PTK GTK info to mac80211 after resume") Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20240809072012.84152-4-pkshih@realtek.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent d7afc31 commit 2c9c2d1

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • drivers/net/wireless/realtek/rtw89

drivers/net/wireless/realtek/rtw89/mac.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ enum rtw89_mac_c2h_mrc_func {
421421

422422
enum rtw89_mac_c2h_wow_func {
423423
RTW89_MAC_C2H_FUNC_AOAC_REPORT,
424-
RTW89_MAC_C2H_FUNC_READ_WOW_CAM,
425424

426425
NUM_OF_RTW89_MAC_C2H_FUNC_WOW,
427426
};

0 commit comments

Comments
 (0)