]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nl80211: fix potential leak of ACL params
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 12:28:34 +0000 (14:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 12:44:56 +0000 (14:44 +0200)
commitabaf94ecc9c356d0b885a84edef4905cdd89cfdd
tree6c18bb56ff1c1a899e695b664b3475c0e1596202
parentb5ac0146492fc5c199de767e492be8a66471011a
nl80211: fix potential leak of ACL params

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>
net/wireless/nl80211.c