]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fix potential leak in AP start
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Feb 2020 09:41:43 +0000 (10:41 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 21 Feb 2020 09:50:26 +0000 (10:50 +0100)
commita433f304503a90b9b2176c591f73a0975bb79cf6
tree1620972f990a1645f2ddfdb054ce8fe8f5773fb9
parent703529c9cba9c4cb2f6b8cd33267433c189aad85
nl80211: fix potential leak in AP start

If nl80211_parse_he_obss_pd() fails, we leak the previously
allocated ACL memory. Free it in this case.

Fixes: 8582d7f37d2d ("cfg80211: add support for parsing OBBS_PD attributes")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200221104142.835aba4cdd14.I1923b55ba9989c57e13978f91f40bfdc45e60cbd@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c