mac80211: init sched_scan_ies
authorDavid Spinadel <[email protected]>
Mon, 29 Oct 2012 12:49:41 +0000 (14:49 +0200)
committerJohannes Berg <[email protected]>
Wed, 31 Oct 2012 16:04:18 +0000 (17:04 +0100)
In case that there is an unsupported band, the ie will be
unallocated and the free will crash.

Cc: [email protected]
Signed-off-by: David Spinadel <[email protected]>
Reviewed-by: Emmanuel Grumbach <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
net/mac80211/scan.c

index c4cdbde24fd3a70db1141c9460f617710daf98e2..43e60b5a7546eba4fd6e5e18eb313b7526d4f5b1 100644 (file)
@@ -917,7 +917,7 @@ int ieee80211_request_sched_scan_start(struct ieee80211_sub_if_data *sdata,
                                       struct cfg80211_sched_scan_request *req)
 {
        struct ieee80211_local *local = sdata->local;
-       struct ieee80211_sched_scan_ies sched_scan_ies;
+       struct ieee80211_sched_scan_ies sched_scan_ies = {};
        int ret, i;
 
        mutex_lock(&local->mtx);