iwlwifi: mvm: rs: fix a theoretical access to uninitialized array elements
authorEyal Shapira <eyal@wizery.com>
Mon, 1 Feb 2016 07:07:05 +0000 (09:07 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sat, 27 Feb 2016 19:59:54 +0000 (21:59 +0200)
commit4494541c0c918688dfbbaf760548846a9c1bcf3f
treea1326d086551ea8783e2c6c16c224debfb80a7c9
parenta339e918daf281a0eb78783abc954c1e97af16c4
iwlwifi: mvm: rs: fix a theoretical access to uninitialized array elements

Klocwork is unhappy as ht_vht_rates might be accessed with
rate->index being set to values between 0 and 3 which will
lead to accessing uninitialized array elements. Effectively this
doesn't happen as in HT/VHT we're not using these rate indices.
Still fix this.

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