qcacmn: Fix array out of bound access
Array mcs_count is of size 13 and the macro MCS_MAX is 13 mcs_count array should be access only till 12, hence change the comparison from <= MCS_MAX to < MCS_MAX Change-Id: Ieab9a8d1f2a06ff31fa79a062bfcbf96f298f0a1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -1220,7 +1220,7 @@ static void dp_rx_msdu_stats_update(struct dp_soc *soc,
|
||||
DP_STATS_INCC(peer, rx.pkt_type[pkt_type].mcs_count[MAX_MCS - 1], 1,
|
||||
((mcs >= MAX_MCS) && (pkt_type == DOT11_AX)));
|
||||
DP_STATS_INCC(peer, rx.pkt_type[pkt_type].mcs_count[mcs], 1,
|
||||
((mcs <= MAX_MCS) && (pkt_type == DOT11_AX)));
|
||||
((mcs < MAX_MCS) && (pkt_type == DOT11_AX)));
|
||||
|
||||
if ((soc->process_rx_status) &&
|
||||
hal_rx_attn_first_mpdu_get(rx_tlv_hdr)) {
|
||||
|
Reference in New Issue
Block a user