staging: rtl8188eu: fix missing unlock on error in rtw_resume_process()
Add the missing unlock before return from function rtw_resume_process() in the error handling case. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8e02a3fd03
commit
eaf47b713b
|
@ -315,8 +315,10 @@ static int rtw_resume_process(struct adapter *padapter)
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
exit:
|
exit:
|
||||||
if (pwrpriv)
|
if (pwrpriv) {
|
||||||
pwrpriv->bInSuspend = false;
|
pwrpriv->bInSuspend = false;
|
||||||
|
mutex_unlock(&pwrpriv->mutex_lock);
|
||||||
|
}
|
||||||
pr_debug("<=== %s return %d.............. in %dms\n", __func__,
|
pr_debug("<=== %s return %d.............. in %dms\n", __func__,
|
||||||
ret, jiffies_to_msecs(jiffies - start_time));
|
ret, jiffies_to_msecs(jiffies - start_time));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue