aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2014-07-21 05:25:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-21 15:10:26 -0400
commit92e396270fea0a787ea848880565fb14cfb20f18 (patch)
tree23825303df32f93b51e5d9456a5726dbc6b24d6a
parent1f31c3f0e1f3a272a95fa2026505a6c13c80488e (diff)
staging: rtl8723au: rtw_resume(): release semaphore before exit on error
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723au/os_dep/usb_intf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723au/os_dep/usb_intf.c b/drivers/staging/rtl8723au/os_dep/usb_intf.c
index 8b25c1aa2025..ebb19b22f47f 100644
--- a/drivers/staging/rtl8723au/os_dep/usb_intf.c
+++ b/drivers/staging/rtl8723au/os_dep/usb_intf.c
@@ -530,8 +530,10 @@ int rtw_resume_process23a(struct rtw_adapter *padapter)
530 pwrpriv->bkeepfwalive = false; 530 pwrpriv->bkeepfwalive = false;
531 531
532 DBG_8723A("bkeepfwalive(%x)\n", pwrpriv->bkeepfwalive); 532 DBG_8723A("bkeepfwalive(%x)\n", pwrpriv->bkeepfwalive);
533 if (pm_netdev_open23a(pnetdev, true) != 0) 533 if (pm_netdev_open23a(pnetdev, true) != 0) {
534 up(&pwrpriv->lock);
534 goto exit; 535 goto exit;
536 }
535 537
536 netif_device_attach(pnetdev); 538 netif_device_attach(pnetdev);
537 netif_carrier_on(pnetdev); 539 netif_carrier_on(pnetdev);