aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorMark M. Hoffman <mhoffman@lightlink.com>2005-05-02 23:35:45 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-20 18:15:09 -0400
commit5cebfb759cc75208c04590ad7f4485cdd822cf46 (patch)
treedf6589c03ea968b674249f5092fbb021f71df157 /drivers/usb
parent56b2293595b2eb52cc2aa2baf92c6cfa8265f9d5 (diff)
[PATCH] USB: trivial error path fix
Trivial fix to USB class-creation error path; please apply. Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c
index dfcbd05d0e81..65ca131cc44c 100644
--- a/drivers/usb/core/file.c
+++ b/drivers/usb/core/file.c
@@ -82,6 +82,7 @@ int usb_major_init(void)
82 82
83 usb_class = class_create(THIS_MODULE, "usb"); 83 usb_class = class_create(THIS_MODULE, "usb");
84 if (IS_ERR(usb_class)) { 84 if (IS_ERR(usb_class)) {
85 error = PTR_ERR(usb_class);
85 err("class_create failed for usb devices"); 86 err("class_create failed for usb devices");
86 unregister_chrdev(USB_MAJOR, "usb"); 87 unregister_chrdev(USB_MAJOR, "usb");
87 goto out; 88 goto out;