linux/drivers/net/wireless/intel/iwlwifi/fw
Luca Coelho fb3c06cfda 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: ba3224db78 ("iwlwifi: mvm: fix an out-of-bound access")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-12-24 01:34:52 +02:00
..
api iwlwifi: scan: support scan req FW API ver 13 2019-11-20 12:28:55 +02:00
acpi.c iwlwifi: fw: make pos static in iwl_sar_get_ewrd_table() loop 2019-12-24 01:34:52 +02:00
acpi.h iwlwifi: refactor the SAR tables from mvm to acpi 2019-11-15 09:34:29 +02:00
dbg.c iwlwifi: dbg: force stop the debug monitor HW 2019-12-24 01:34:52 +02:00
dbg.h iwlwifi: dbg_ini: use new trigger TLV in dump flow 2019-10-25 10:09:24 +03:00
debugfs.c iwlwifi: dbg_ini: support domain changing via debugfs 2019-10-25 10:09:48 +03:00
debugfs.h iwlwifi: fw: no need to check return value of debugfs_create functions 2019-02-20 20:47:56 +02:00
error-dump.h iwlwifi: dbg_ini: support FW response/notification region type 2019-10-25 10:09:51 +03:00
file.h wireless-drivers-next patches for 5.5 2019-11-05 18:36:35 -08:00
img.h iwlwifi: scan: adapt the code to use api ver 11 2019-11-15 09:32:30 +02:00
init.c iwlwifi: dbg_ini: remove periodic trigger 2019-09-06 15:52:07 +03:00
notif-wait.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
notif-wait.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
paging.c iwlwifi: add a pointer to the trans_cfg directly in trans 2019-09-06 15:52:00 +03:00
runtime.h iwlwifi: refactor the SAR tables from mvm to acpi 2019-11-15 09:34:29 +02:00
smem.c iwlwifi: add a pointer to the trans_cfg directly in trans 2019-09-06 15:52:00 +03:00