]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211: fix missing unlock on error in ieee80211_mark_sta_auth()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 16 Oct 2018 02:35:30 +0000 (02:35 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 07:54:17 +0000 (08:54 +0100)
commit33483a6b88e4c4c3fc50178b185da52c55288b95
treed07a757644fa37abbf1fc8808a9b66417bc1c93d
parent05cc09de4c017663a217630682041066f2f9a5cd
mac80211: fix missing unlock on error in ieee80211_mark_sta_auth()

Add the missing unlock before return from function
ieee80211_mark_sta_auth() in the error handling case.

Cc: stable@vger.kernel.org
Fixes: fc107a933071 ("mac80211: Helper function for marking STA authenticated")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
[use result variable/label instead of duplicating]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c