]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fix memory leak when parsing NL80211_ATTR_HE_BSS_COLOR
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 26 Jun 2020 09:49:40 +0000 (12:49 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Jun 2020 09:52:57 +0000 (11:52 +0200)
commite0bd67c53daadedea742e8538f91a27d08c9df9a
tree235b9c6431f193b354d89c5a3b78ec2d677e5000
parentcf6ed328301ad2b8401509355a575ab9e9def041
nl80211: fix memory leak when parsing NL80211_ATTR_HE_BSS_COLOR

If there is an error when parsing the NL80211_ATTR_HE_BSS_COLOR
attribute, we return immediately without freeing param.acl.  Fit it by
using goto out instead of returning immediately.

Fixes: 00e60050d41c ("nl80211: add handling for BSS color")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200626124931.7ad2a3eb894f.I60905fb70bd20389a3b170db515a07275e31845e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c