mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 14:20:50 +07:00
cfg80211: minimal error handling for wext-compat freq scanning
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
50425b0977
commit
012a1b3e5e
@ -675,6 +675,11 @@ int cfg80211_wext_siwscan(struct net_device *dev,
|
||||
wext_freq_not_found: ;
|
||||
}
|
||||
}
|
||||
/* No channels found? */
|
||||
if (!i) {
|
||||
err = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Set real number of channels specified in creq->channels[] */
|
||||
creq->n_channels = i;
|
||||
|
Loading…
Reference in New Issue
Block a user