From: David Spinadel Date: Mon, 29 Oct 2012 12:49:41 +0000 (+0200) Subject: mac80211: init sched_scan_ies X-Git-Tag: v3.7-rc8~6^2~2^2~4^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bca1e29fb54c51856dda6772d488d41b10ed91da;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Reviewed-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- 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);