]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix an out-of-bound access
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 22 Jul 2019 09:47:27 +0000 (12:47 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Jul 2019 16:34:32 +0000 (18:34 +0200)
commit54243f2f70ad5405e84a4bab1e3089fdbf5c34c2
tree9c3581a5df43e5b644e6dc494d50ab551b1da2e2
parent5f1d5799df14582e3f12d69554d49906c35fb183
iwlwifi: mvm: fix an out-of-bound access

The index for the elements of the ACPI object we dereference
was static. This means that if we called the function twice
we wouldn't start from 3 again, but rather from the latest
index we reached in the previous call.
This was dutifully reported by KASAN.

Fix this.

Cc: stable@vger.kernel.org
Fixes: a07d545b6e43 ("iwlwifi: mvm: add support for EWRD (Dynamic SAR) ACPI table")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c