]> 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)
commitd1d0f8a2c7788cb302bdf7c98e1967b0ef2ae6bb
treed07a757644fa37abbf1fc8808a9b66417bc1c93d
parent462083c4ca9b9876109c78029f8acf8497eaf123
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: e2b09ba0a0fe ("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