mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
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>
This commit is contained in:
parent
1f31c3f0e1
commit
92e396270f
@ -530,8 +530,10 @@ int rtw_resume_process23a(struct rtw_adapter *padapter)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user