Skip to content

Commit a5f6005

Browse files
Oliver Neukumgregkh
authored andcommitted
USB: small fix in error case of suspend in generic usbserial code
usb:usbserial: fix flags in error case of suspension suspended flag must be reset in error case Signed-off-by: Oliver Neukum <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4c9fde9 commit a5f6005

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/usb/serial/usb-serial.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,8 +1168,10 @@ int usb_serial_suspend(struct usb_interface *intf, pm_message_t message)
11681168

11691169
if (serial->type->suspend) {
11701170
r = serial->type->suspend(serial, message);
1171-
if (r < 0)
1171+
if (r < 0) {
1172+
serial->suspending = 0;
11721173
goto err_out;
1174+
}
11731175
}
11741176

11751177
for (i = 0; i < serial->num_ports; ++i) {

0 commit comments

Comments
 (0)