]> www.infradead.org Git - linux.git/commitdiff
wifi: rtw89: remove unused C2H event ID RTW89_MAC_C2H_FUNC_READ_WOW_CAM to prevent...
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 9 Aug 2024 07:20:09 +0000 (15:20 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 16 Aug 2024 11:26:23 +0000 (19:26 +0800)
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: ff53fce5c78b ("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
drivers/net/wireless/realtek/rtw89/mac.h

index 9d3be36ffb6eebd8c734f79eb9042cab00b55fc5..67c2a45071244d20d047069a59032bdc2e55435d 100644 (file)
@@ -421,7 +421,6 @@ enum rtw89_mac_c2h_mrc_func {
 
 enum rtw89_mac_c2h_wow_func {
        RTW89_MAC_C2H_FUNC_AOAC_REPORT,
-       RTW89_MAC_C2H_FUNC_READ_WOW_CAM,
 
        NUM_OF_RTW89_MAC_C2H_FUNC_WOW,
 };