]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: check scan request ie_len
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 16 Apr 2010 13:46:41 +0000 (15:46 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Apr 2010 19:47:15 +0000 (15:47 -0400)
commit2f3a615a849976ca3a702acc2d3833811657448e
treed40bf385d54cd7899543dbbac1518d0b34762665
parentd24c3800b61e84896b3b37923e989564ef99b313
iwlwifi: check scan request ie_len

In mac80211 we always check both scan_req->ie and scan_req->ie_len
against zero before usage, in iwlwifi we should do the same.

Remove not needed "left -= ie_len" while at it.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-scan.c