]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: don't allow the FW to return invalid ch indices
authorArik Nemtsov <arik@wizery.com>
Sun, 1 Mar 2015 16:24:57 +0000 (18:24 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 12 Mar 2015 07:57:39 +0000 (09:57 +0200)
commit4557eaba13c2b9074c64e37bb93f77c4917a81b1
tree9ebe46936756a71808543a02a0af972d493b5d09
parentfcf23352e0ff500676ac4923c68c20a1fe55fb5e
iwlwifi: don't allow the FW to return invalid ch indices

If the FW returns an invalid channels count in response to an MCC request,
make sure we don't reference invalid indices in the channels array.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-nvm-parse.c