Skip to content

Commit

Permalink
USB: usb-serial: fix the aircable_init failure path
Browse files Browse the repository at this point in the history
The failure path of aircable_init is wrong, fix the order of (goto) labels.

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Acked-by: Naranjo Manuel Francisco <naranjo.manuel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dave Young authored and Greg Kroah-Hartman committed Feb 9, 2009
1 parent 0d020aa commit 78c8fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/serial/aircable.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,9 @@ static int __init aircable_init(void)
goto failed_usb_register;
return 0;

failed_serial_register:
usb_serial_deregister(&aircable_device);
failed_usb_register:
usb_serial_deregister(&aircable_device);
failed_serial_register:
return retval;
}

Expand Down

0 comments on commit 78c8fb3

Please sign in to comment.