Skip to content

Commit

Permalink
[PATCH] USB: trivial error path fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark M. Hoffman authored and Greg Kroah-Hartman committed Jun 20, 2005
1 parent 56b2293 commit 5cebfb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/core/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5cebfb7

Please sign in to comment.