diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2020-06-26 12:49:39 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-06-26 11:52:52 +0200 |
commit | bc7a39b4272b9672d806d422b6850e8c1a09914c (patch) | |
tree | dfbed4bd618ec867a78d080468e9e3387ff162fe /net/x25 | |
parent | 0b467b63870d9c05c81456aa9bfee894ab2db3b6 (diff) | |
download | linux-bc7a39b4272b9672d806d422b6850e8c1a09914c.tar.bz2 |
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: 9951ebfcdf2b ("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>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions