nl80211: fix potential leak of ACL params
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 12:28:34 +0000 (14:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:42:02 +0000 (08:42 +0200)
commitfea52345f422517baadc49425bf8c944b4c425c0
tree4a67263973b5f014259c6ad4046b91ca0895c64e
parent42e4450e37905c8765b770c490cd6c64713e5de9
nl80211: fix potential leak of ACL params

commit abaf94ecc9c356d0b885a84edef4905cdd89cfdd upstream.

In case nl80211_parse_unsol_bcast_probe_resp() results in an
error, need to "goto out" instead of just returning to free
possibly allocated data.

Fixes: 7443dcd1f171 ("nl80211: Unsolicited broadcast probe response support")
Link: https://lore.kernel.org/r/20210408142833.d8bc2e2e454a.If290b1ba85789726a671ff0b237726d4851b5b0f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c