]> git.baikalelectronics.ru Git - kernel.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)
commit6974d0db0df3ca4f677e825c73771e1aa1c289db
tree6c18bb56ff1c1a899e695b664b3475c0e1596202
parentf30269f97a9acfd80ba1dafe74d17a4dc268cc69
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: c3eaa2f36a8f ("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