commit | e8b3f7b6e746e5a850d243e1e11d83d2163e16e4 | [log] [tgz] |
---|---|---|
author | Eyal Shapira <eyal@wizery.com> | Thu Nov 19 18:37:31 2015 +0200 |
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | Sun Dec 13 08:22:31 2015 +0200 |
tree | 7a2f7e435378d1883ea409438419693d6071bff0 | |
parent | 355346ba3050f42dc33663d7dd6cba055ba31924 [diff] |
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>