diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 2d0f75d63ff0..bd3fa7ff15b1 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -1168,8 +1168,10 @@ int usb_serial_suspend(struct usb_interface *intf, pm_message_t message) | |||
1168 | 1168 | ||
1169 | if (serial->type->suspend) { | 1169 | if (serial->type->suspend) { |
1170 | r = serial->type->suspend(serial, message); | 1170 | r = serial->type->suspend(serial, message); |
1171 | if (r < 0) | 1171 | if (r < 0) { |
1172 | serial->suspending = 0; | ||
1172 | goto err_out; | 1173 | goto err_out; |
1174 | } | ||
1173 | } | 1175 | } |
1174 | 1176 | ||
1175 | for (i = 0; i < serial->num_ports; ++i) { | 1177 | for (i = 0; i < serial->num_ports; ++i) { |