summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDavid Spinadel <david.spinadel@intel.com>2012-10-29 14:49:41 +0200
committerJohannes Berg <johannes.berg@intel.com>2012-10-31 17:04:18 +0100
commitbca1e29fb54c51856dda6772d488d41b10ed91da (patch)
treedc1d5b559c9f109a1c5fdcb45a59621b2c8acebc /net
parent35f5149ead73e8e635b417b6c3aece43ffdfe5bc (diff)
downloadlwn-bca1e29fb54c51856dda6772d488d41b10ed91da.tar.gz
lwn-bca1e29fb54c51856dda6772d488d41b10ed91da.zip
mac80211: init sched_scan_ies
In case that there is an unsupported band, the ie will be unallocated and the free will crash. Cc: stable@vger.kernel.org Signed-off-by: David Spinadel <david.spinadel@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-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);