linux_dsm_epyc7002/drivers/net/wireless/iwlwifi/dvm
Tim Gardner 8907a6fb62 iwlwifi: iwlagn_request_scan: Fix check for priv->scan_request
The WARN_ON_ONCE() check for scan_request will not correctly detect
a NULL pointer for scan_type == IWL_SCAN_NORMAL. Make it explicit
that the check only applies to normal scans.

Convert WARN_ON_ONCE to WARN_ON since priv->scan_request really _can't_
be NULL for normal scans. If it is then we should emit frequent warnings.

This smatch warning led to scrutiny of iwlagn_request_scan():

drivers/net/wireless/iwlwifi/dvm/scan.c:894 iwlagn_request_scan() error: we previously assumed 'priv->scan_request' could be null (see line 792)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2012-12-10 22:38:58 +01:00
..
agn.h iwlwifi: fix queue flush confusion 2012-11-05 16:12:24 +01:00
calib.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
calib.h
commands.h iwlwifi: fix queue flush confusion 2012-11-05 16:12:24 +01:00
debugfs.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
dev.h iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
devices.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
led.c
led.h
lib.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
mac80211.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
main.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
Makefile
power.c
power.h
rs.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
rs.h
rx.c iwlwifi: handle RFKILL logic in the transport layer 2012-10-31 17:02:06 +01:00
rxon.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
scan.c iwlwifi: iwlagn_request_scan: Fix check for priv->scan_request 2012-12-10 22:38:58 +01:00
sta.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00
testmode.c
tt.c
tt.h
tx.c iwlwifi: change TX code to suppress smatch warning 2012-12-07 09:37:40 +01:00
ucode.c iwlwifi: Change define and struct names in iwl-eeprom-parse.h 2012-12-06 22:21:38 +01:00