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>
This commit is contained in:
parent
73b26df5fa
commit
9495b31ad7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue