]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: rs: fix a potential out of bounds access
authorEyal Shapira <eyal@wizery.com>
Thu, 19 Nov 2015 16:37:31 +0000 (18:37 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Dec 2015 06:22:31 +0000 (08:22 +0200)
commit93bce04d30ff94aff3713342fb92bf793175eb75
tree7a2f7e435378d1883ea409438419693d6071bff0
parentef657ee2cfb82f9e2f76ee16db911b79a84c0a9a
iwlwifi: mvm: rs: fix a potential out of bounds access

Klocwork pointed these out. There is a theoretical possibility
that rate->index might be set to IWL_RATE_INVALID (15).
This could trigger an out of bounds access on ht_vht_rates or
legacy_rates arrays. Fix it by adding some checks.

Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rs.c