Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bca1e29f authored by David Spinadel's avatar David Spinadel Committed by Johannes Berg
Browse files

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: default avatarDavid Spinadel <david.spinadel@intel.com>
Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 35f5149e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);