mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
net: wireless: bcmdhd: Fix scan crash in ibss mode
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
af16732d4c
commit
4f36cb88d6
|
|
@ -1461,7 +1461,7 @@ __wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
|
|||
(int)wl->status));
|
||||
return -EAGAIN;
|
||||
}
|
||||
if (request->n_ssids > WL_SCAN_PARAMS_SSID_MAX) {
|
||||
if (request && request->n_ssids > WL_SCAN_PARAMS_SSID_MAX) {
|
||||
WL_ERR(("n_ssids > WL_SCAN_PARAMS_SSID_MAX\n"));
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user