Commit 8862dc5f authored by Holger Schurig's avatar Holger Schurig Committed by John W. Linville
Browse files

cfg80211: minimal error handling for wext-compat freq scanning

parent a4e7b730
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;