aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spinadel <[email protected]>2012-10-29 14:49:41 +0200
committerJohannes Berg <[email protected]>2012-10-31 17:04:18 +0100
commitbca1e29fb54c51856dda6772d488d41b10ed91da (patch)
treedc1d5b559c9f109a1c5fdcb45a59621b2c8acebc
parent35f5149ead73e8e635b417b6c3aece43ffdfe5bc (diff)
mac80211: init sched_scan_ies
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]>
-rw-r--r--net/mac80211/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index c4cdbde24fd3..43e60b5a7546 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -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);