]> git.baikalelectronics.ru Git - kernel.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)
commit797480d7c23ab87824383480ee876fc7485a4e98
treed07a757644fa37abbf1fc8808a9b66417bc1c93d
parent54537b8a414e9e848cadd8495f99aeba0931c59b
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: 215f4d8a694e ("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