diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2019-12-23 13:00:59 +0200 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2019-12-24 01:34:52 +0200 |
commit | fb3c06cfda0db68f6082f05c43d63c1fb1761af0 (patch) | |
tree | a1f567c234508184bc8fe855c1336c70782fc555 /drivers/net/wireless/intel/iwlwifi/mvm/scan.c | |
parent | f06021a18fcf8d8a1e79c5e0a8ec4eb2b038e153 (diff) | |
download | lwn-fb3c06cfda0db68f6082f05c43d63c1fb1761af0.tar.gz lwn-fb3c06cfda0db68f6082f05c43d63c1fb1761af0.zip |
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Fixes: ba3224db7803 ("iwlwifi: mvm: fix an out-of-bound access")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/scan.c')
0 files changed, 0 insertions, 0 deletions