Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] cfg80211: minimal error handling for wext-compat freq scanning
@ 2009-09-11  8:13 Holger Schurig
  0 siblings, 0 replies; only message in thread
From: Holger Schurig @ 2009-09-11  8:13 UTC (permalink / raw)
  To: John W Linville, linux-wireless; +Cc: Johannes Berg

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>

Index: linux-wl/net/wireless/scan.c
===================================================================
--- linux-wl.orig/net/wireless/scan.c	2009-09-11 09:05:39.000000000 +0200
+++ linux-wl/net/wireless/scan.c	2009-09-11 09:05:42.000000000 +0200
@@ -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;

-- 
http://www.holgerschurig.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-11  8:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-11  8:13 [PATCH] cfg80211: minimal error handling for wext-compat freq scanning Holger Schurig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox