summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-08-26 14:45:05 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-01 17:55:43 +0200
commiteaf47b713b602e7d0129ed8d18d2818246a17e49 (patch)
tree4e17f55f219d421f5b70790f87d05efcc9aab0b1 /drivers/staging/rtl8188eu
parent8e02a3fd03d5391a83ba05b12f5f8d1a0e4e31a4 (diff)
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>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/usb_intf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
index a5ba1e4da15e..7da3534f15f7 100644
--- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c
+++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
@@ -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));