diff options
author | Yuanhan Liu <yuanhan.liu@linux.intel.com> | 2012-10-18 12:10:56 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-10-24 19:18:08 +0200 |
commit | 9495b31ad7e2b479501abb36a62789d59ee406fc (patch) | |
tree | be599e2b6f158010d97209dbd30b45f6021fd525 /drivers | |
parent | Revert "ath9k_hw: Updated AR9003 tx gain table for 5GHz" (diff) | |
download | linux-9495b31ad7e2b479501abb36a62789d59ee406fc.tar.xz linux-9495b31ad7e2b479501abb36a62789d59ee406fc.zip |
brcmfmac: fix potential NULL dereference
Fix a samtch warnings catched by Fengguang's 0-DAY system:
+ drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:3572 brcmf_cfg80211_sched_scan_start() error: we previously assumed 'request' could be null (see line 3571)
Cc: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c index 411dfe7c7ff0..a6f1e8166008 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c @@ -3569,7 +3569,7 @@ brcmf_cfg80211_sched_scan_start(struct wiphy *wiphy, if (!request || !request->n_ssids || !request->n_match_sets) { WL_ERR("Invalid sched scan req!! n_ssids:%d\n", - request->n_ssids); + request ? request->n_ssids : 0); return -EINVAL; } |