Skip to content

Commit

Permalink
USB: small fix in error case of suspend in generic usbserial code
Browse files Browse the repository at this point in the history
usb:usbserial: fix flags in error case of suspension

suspended flag must be reset in error case

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Oliver Neukum authored and gregkh committed Oct 9, 2009
1 parent 4c9fde9 commit a5f6005
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,8 +1168,10 @@ int usb_serial_suspend(struct usb_interface *intf, pm_message_t message)

if (serial->type->suspend) {
r = serial->type->suspend(serial, message);
if (r < 0)
if (r < 0) {
serial->suspending = 0;
goto err_out;
}
}

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

0 comments on commit a5f6005

Please sign in to comment.