]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:43:45 +0000 (16:43 +0100)
commit5ecd5465e53ffd8306db928fcb5660feda1eb97e
tree78ddcca3be3139434efb9be3b9fba554eb897bd3
parentca0b76a35f3526c1bb6cad37f03203ab2256163d
nl80211: fix potential leak in AP start

commit a433f304503a90b9b2176c591f73a0975bb79cf6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c