]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc61b0f5ec1b1b1bad734409a70ec2d25fb44f451
tree5c61acd6f44500947f47736f5de9cc747a62a2b2
parentd14843a72641de2573095e14a83ba79b8f3ce37d
mac80211: fix possible memory leak in ieee80211_assign_beacon

Free new beacon_data in ieee80211_assign_beacon whenever
ieee80211_assign_beacon fails

Fixes: 50ebd8015bfd ("cfg80211: restructure AP/GO mode API")
Fixes: 3d206427d53c ("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