linux/drivers/net/wireless/iwlwifi
Eyal Shapira 560843f4ab iwlwifi: mvm: rs: fix a theoretical out of bounds access
Discovered by klocwork

Array 'iwl_rate_mcs' of size 15 may use index value(s) -1
  * rs.c:2562: index = iwl_hwrate_to_plcp_idx(rate)
    * rs.c:2562: Result of function call 'iwl_hwrate_to_plcp_idx(rate)' is '[-1,14]'
  * rs.c:2565: Array 'iwl_rate_mcs' size is 15.
  * rs.c:2565: Possible attempt to access element -1 of array 'iwl_rate_mcs'.

While at it stop using index = -1 and always use IWL_RATE_INVALID

Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
2014-01-13 22:17:16 +02:00
..
dvm iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
mvm iwlwifi: mvm: rs: fix a theoretical out of bounds access 2014-01-13 22:17:16 +02:00
pcie iwlwifi: pcie: enable oscillator for L1 exit 2014-01-13 22:17:05 +02:00
iwl-1000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-2000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-5000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-6000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-7000.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-agn-hw.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-config.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-csr.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-debug.c iwlwifi: export symbols only conditionally 2013-03-06 16:47:56 +01:00
iwl-debug.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-devtrace.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-devtrace.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-drv.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-drv.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-eeprom-parse.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-eeprom-parse.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-eeprom-read.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-eeprom-read.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-fh.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-fw-file.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-fw.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-io.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-io.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-modparams.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-notif-wait.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-notif-wait.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-nvm-parse.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-nvm-parse.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-op-mode.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-phy-db.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-phy-db.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
iwl-prph.h iwlwifi: pcie: enable oscillator for L1 exit 2014-01-13 22:17:05 +02:00
iwl-trans.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
Kconfig iwlwifi: Kconfig: fix help texts wrt 7260 and 3160 devices 2013-08-16 12:11:47 +02:00
Makefile iwlwifi: remove testmode 2013-06-18 11:51:57 +02:00