Skip to content

Commit

Permalink
staging: rtl8188eu: fix missing unlock on error in rtw_resume_process()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Sep 1, 2016
1 parent 8e02a3f commit eaf47b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/staging/rtl8188eu/os_dep/usb_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit eaf47b7

Please sign in to comment.