diff options
author | David Spinadel <david.spinadel@intel.com> | 2012-10-29 14:49:41 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-31 17:04:18 +0100 |
commit | bca1e29fb54c51856dda6772d488d41b10ed91da (patch) | |
tree | dc1d5b559c9f109a1c5fdcb45a59621b2c8acebc /net/mac80211 | |
parent | 35f5149ead73e8e635b417b6c3aece43ffdfe5bc (diff) | |
download | linux-bca1e29fb54c51856dda6772d488d41b10ed91da.tar.gz linux-bca1e29fb54c51856dda6772d488d41b10ed91da.tar.bz2 linux-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/mac80211')
-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 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); |