]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix memory leaks with element parsing
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Oct 2021 19:11:08 +0000 (21:11 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Oct 2021 14:54:04 +0000 (16:54 +0200)
commitcbe46f046990c023f20000ffd6bb78a85901b44e
treee7e391484c4dbe8592e4c8da300442f4a8ec5be1
parentcee5b8150a0ef6be1140319afa325832bdd347d0
mac80211: fix memory leaks with element parsing

My previous commit 3b26bf50a065 ("mac80211: always allocate
struct ieee802_11_elems") had a few bugs and leaked the new
allocated struct in a few error cases, fix that.

Fixes: 3b26bf50a065 ("mac80211: always allocate struct ieee802_11_elems")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20211001211108.9839928e42e0.Ib81ca187d3d3af7ed1bfeac2e00d08a4637c8025@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/agg-rx.c
net/mac80211/ibss.c
net/mac80211/mlme.c