From: Jes Sorensen Date: Mon, 21 Jul 2014 09:25:09 +0000 (+0200) Subject: staging: rtl8723au: rtw_resume(): release semaphore before exit on error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d71c77b1160ce5cc32ab959a86dbd25f42108f9a;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8723au: rtw_resume(): release semaphore before exit on error Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/os_dep/usb_intf.c b/drivers/staging/rtl8723au/os_dep/usb_intf.c index c75427f510c8..06c885f7856e 100644 --- a/drivers/staging/rtl8723au/os_dep/usb_intf.c +++ b/drivers/staging/rtl8723au/os_dep/usb_intf.c @@ -505,8 +505,10 @@ static int rtw_resume(struct usb_interface *pusb_intf) pwrpriv->bkeepfwalive = false; DBG_8723A("bkeepfwalive(%x)\n", pwrpriv->bkeepfwalive); - if (pm_netdev_open23a(pnetdev, true) != 0) + if (pm_netdev_open23a(pnetdev, true) != 0) { + up(&pwrpriv->lock); goto exit; + } netif_device_attach(pnetdev); netif_carrier_on(pnetdev);