Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1470779 > unrolled thread

[PATCH -next] staging: rtl8188eu: fix missing unlock on error in rtw_resume_process()

Started byWei Yongjun <weiyj.lk@gmail.com>
First post2016-08-26 16:50 +0200
Last post2016-08-26 16:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH -next] staging: rtl8188eu: fix missing unlock on error in rtw_resume_process() Wei Yongjun <weiyj.lk@gmail.com> - 2016-08-26 16:50 +0200

#1470779 — [PATCH -next] staging: rtl8188eu: fix missing unlock on error in rtw_resume_process()

FromWei Yongjun <weiyj.lk@gmail.com>
Date2016-08-26 16:50 +0200
Subject[PATCH -next] staging: rtl8188eu: fix missing unlock on error in rtw_resume_process()
Message-ID<saqCd-8pO-19@gated-at.bofh.it>
From: Wei Yongjun <weiyongjun1@huawei.com>

Add the missing unlock before return from function
rtw_resume_process() in the error handling case.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/staging/rtl8188eu/os_dep/usb_intf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
index a5ba1e4..7da3534 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));

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web