projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d020aa
)
USB: usb-serial: fix the aircable_init failure path
author
Dave Young
<hidave.darkstar@gmail.com>
Sun, 1 Feb 2009 10:54:54 +0000
(18:54 +0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 9 Feb 2009 19:19:48 +0000
(11:19 -0800)
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>
drivers/usb/serial/aircable.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/aircable.c
b/drivers/usb/serial/aircable.c
index 537f953bd7f8013c3cd97b5fc269252e5f6e235a..6d106e74265e9d839e7a4e5123bb4ce11c97a538 100644
(file)
--- a/
drivers/usb/serial/aircable.c
+++ b/
drivers/usb/serial/aircable.c
@@
-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;
}