mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07: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
30c588e04c
commit
d71c77b116
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user