mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-26 13:21:12 +07:00
usb_wwan: fix runtime PM in error case
An error in the write code path would permanently disable runtime PM in this driver Signed-off-by: Oliver Neukum <oliver@neukum.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
c9c4558f78
commit
3d06bf152a
@ -261,6 +261,7 @@ int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port,
|
|||||||
intfdata->in_flight--;
|
intfdata->in_flight--;
|
||||||
spin_unlock_irqrestore(&intfdata->susp_lock,
|
spin_unlock_irqrestore(&intfdata->susp_lock,
|
||||||
flags);
|
flags);
|
||||||
|
usb_autopm_put_interface_async(port->serial->interface);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user