mac80211: fix possible memory leak in ieee80211_assign_beacon
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 2 Jul 2019 22:29:47 +0000 (00:29 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 20 Jul 2019 19:39:26 +0000 (21:39 +0200)
commitbcc27fab8cc673ddc95452674373cce618ccb3a3
tree5c61acd6f44500947f47736f5de9cc747a62a2b2
parent5edaac063bbf1267260ad2a5b9bb803399343e58
mac80211: fix possible memory leak in ieee80211_assign_beacon

Free new beacon_data in ieee80211_assign_beacon whenever
ieee80211_assign_beacon fails

Fixes: 8860020e0be1 ("cfg80211: restructure AP/GO mode API")
Fixes: bc847970f432 ("mac80211: support FTM responder configuration/statistic")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/770285772543c9fca33777bb4ad4760239e56256.1562105631.git.lorenzo@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c