From: Wei Yongjun Date: Fri, 26 Aug 2016 14:45:05 +0000 (+0000) Subject: staging: rtl8188eu: fix missing unlock on error in rtw_resume_process() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eaf47b713b60;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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));