Skip to content
Commit fb3c06cf authored by Luca Coelho's avatar Luca Coelho
Browse files

iwlwifi: fw: make pos static in iwl_sar_get_ewrd_table() loop



In the for loop where we are supposed to go through the entire table,
we are using a non-static local to keep the pos index.  This makes
each iteration start with 3, so we always access the first item on the
table.  Fix this by moving the variable outside of the loo so it
doesn't lose its value at every iteration.

Reported-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Fixes: ba3224db ("iwlwifi: mvm: fix an out-of-bound access")
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent f06021a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment