Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eaf47b71 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e02a3fd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -315,8 +315,10 @@ static int rtw_resume_process(struct adapter *padapter)

	ret = 0;
exit:
	if (pwrpriv)
	if (pwrpriv) {
		pwrpriv->bInSuspend = false;
		mutex_unlock(&pwrpriv->mutex_lock);
	}
	pr_debug("<===  %s return %d.............. in %dms\n", __func__,
		ret, jiffies_to_msecs(jiffies - start_time));