cfg80211: minimal error handling for wext-compat freq scanning
PATCH 1/1 cfg80211: minimal error handling for wext-compat freq scanning
Signed-off-by Holger Schurig <[email protected]>
net/wireless/scan.c +5 -0
@@ -680,6 +680,11 @@ int cfg80211_wext_siwscan(struct net_dev err = -EINVAL ; goto out; } +/* No channels found? */ +if (!i) { + err = -EINVAL ; + goto out; + }/* Set real number of channels specified in creq->channels[] */ creq->n_channels = i;
Signature · 1 line
http://www.holgerschurig.de