Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Mark M. Hoffman and committed by
Greg Kroah-Hartman
5cebfb75 56b22935

+1
+1
drivers/usb/core/file.c
··· 82 82 83 83 usb_class = class_create(THIS_MODULE, "usb"); 84 84 if (IS_ERR(usb_class)) { 85 + error = PTR_ERR(usb_class); 85 86 err("class_create failed for usb devices"); 86 87 unregister_chrdev(USB_MAJOR, "usb"); 87 88 goto out;