Commit 0a43549f authored by Wei Yongjun's avatar Wei Yongjun Committed by Ben Hutchings

staging: rtl8188eu: fix missing unlock on error in rtw_resume_process()

commit eaf47b71 upstream.

Add the missing unlock before return from function
rtw_resume_process() in the error handling case.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.16:
 - Adjust context
 - Unlock pwrctrl_priv::lock]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 615e796a
...@@ -511,8 +511,10 @@ int rtw_resume_process(struct adapter *padapter) ...@@ -511,8 +511,10 @@ int rtw_resume_process(struct adapter *padapter)
ret = 0; ret = 0;
exit: exit:
if (pwrpriv) if (pwrpriv) {
pwrpriv->bInSuspend = false; pwrpriv->bInSuspend = false;
_exit_pwrlock(&pwrpriv->lock);
}
DBG_88E("<=== %s return %d.............. in %dms\n", __func__, DBG_88E("<=== %s return %d.............. in %dms\n", __func__,
ret, rtw_get_passing_time_ms(start_time)); ret, rtw_get_passing_time_ms(start_time));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment