]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: don't return err unconditionally in nl80211_start_ap()
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 26 Jun 2020 09:49:39 +0000 (12:49 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Jun 2020 09:52:52 +0000 (11:52 +0200)
commitcf6ed328301ad2b8401509355a575ab9e9def041
treedfbed4bd618ec867a78d080468e9e3387ff162fe
parentce2d47b4a330eb45ae69a743918867d8f40a975b
nl80211: don't return err unconditionally in nl80211_start_ap()

When a memory leak was fixed, a return err was changed to goto err,
but, accidentally, the if (err) was removed, so now we always exit at
this point.

Fix it by adding if (err) back.

Fixes: a433f304503a ("nl80211: fix potential leak in AP start")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200626124931.871ba5b31eee.I97340172d92164ee92f3c803fe20a8a6e97714e1@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c