diff options
author | David Spinadel <david.spinadel@intel.com> | 2012-10-29 12:49:41 (GMT) |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-31 16:04:18 (GMT) |
commit | bca1e29fb54c51856dda6772d488d41b10ed91da (patch) | |
tree | dc1d5b559c9f109a1c5fdcb45a59621b2c8acebc /net/mac80211/scan.c | |
parent | 35f5149ead73e8e635b417b6c3aece43ffdfe5bc (diff) | |
download | linux-bca1e29fb54c51856dda6772d488d41b10ed91da.tar.xz |
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/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index c4cdbde..43e60b5 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); |