qcacmn: user_id check while accessing ppdu_info->rx_msdu_info
Add max user_id check while accessing ppdu_info->rx_msdu_info[] to avoid out of bound array access Change-Id: Ifcc298d1fd8bd00db5eb2d1777a7ff5af894afe6 CRs-fixed: 2477005
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

父節點
5121951db6
當前提交
08b2c7a134
@@ -1281,8 +1281,10 @@ hal_rx_status_get_tlv_info_generic(void *rx_tlv_hdr, void *ppduinfo,
|
||||
FCS_ERR);
|
||||
return HAL_TLV_STATUS_MPDU_END;
|
||||
case WIFIRX_MSDU_END_E:
|
||||
ppdu_info->rx_msdu_info[user_id].cce_metadata =
|
||||
HAL_RX_MSDU_END_CCE_METADATA_GET(rx_tlv);
|
||||
if (user_id < HAL_MAX_UL_MU_USERS) {
|
||||
ppdu_info->rx_msdu_info[user_id].cce_metadata =
|
||||
HAL_RX_MSDU_END_CCE_METADATA_GET(rx_tlv);
|
||||
}
|
||||
return HAL_TLV_STATUS_MSDU_END;
|
||||
case 0:
|
||||
return HAL_TLV_STATUS_PPDU_DONE;
|
||||
|
Reference in New Issue
Block a user