Skip to content
Commit f1cbb0a8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Luca Coelho
Browse files

iwlwifi: mvm: fix off by one in iwl_mvm_stat_iterator_all_macs()



Change the comparison from ">" to ">=" to avoid accessing one element
beyond the end of the ->per_mac_stats[] array.

Fixes: 6324c173 ("iwlwifi: mvm: add support for statistics update version 15")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220106071825.GA5836@kili


Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 0eb50c67
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment