diff options
author | Mark M. Hoffman <mhoffman@lightlink.com> | 2005-05-03 05:35:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-21 00:15:09 +0200 |
commit | 5cebfb759cc75208c04590ad7f4485cdd822cf46 (patch) | |
tree | df6589c03ea968b674249f5092fbb021f71df157 | |
parent | [PATCH] class: convert drivers/* to use the new class api instead of class_si... (diff) | |
download | linux-5cebfb759cc75208c04590ad7f4485cdd822cf46.tar.xz linux-5cebfb759cc75208c04590ad7f4485cdd822cf46.zip |
[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>
-rw-r--r-- | drivers/usb/core/file.c | 1 |
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) usb_class = class_create(THIS_MODULE, "usb"); if (IS_ERR(usb_class)) { + error = PTR_ERR(usb_class); err("class_create failed for usb devices"); unregister_chrdev(USB_MAJOR, "usb"); goto out; |