summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2018-06-11 11:15:17 +0300
committerLuca Coelho <luciano.coelho@intel.com>2018-10-06 10:25:42 +0300
commit2e1976bb75263fbad918e82184b16a23bd721546 (patch)
treef85921944e6a97a358083d8ac03c779f28c364b1 /drivers/net/wireless/intel/iwlwifi/mvm/utils.c
parente1c02eb16a9c742178874a7d1a08d300981715fb (diff)
iwlwifi: mvm: check for n_profiles validity in EWRD ACPI
When reading the profiles from the EWRD table in ACPI, we loop over the data and set it into our internal table. We use the number of profiles specified in ACPI without checking its validity, so if the ACPI table is corrupted and the number is larger than our array size, we will try to make an out-of-bounds access. Fix this by making sure the value specified in the ACPI table is valid. Fixes: 6996490501ed ("iwlwifi: mvm: add support for EWRD (Dynamic SAR) ACPI table") Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
0 files changed, 0 insertions, 0 deletions