[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>
This commit is contained in:
parent
56b2293595
commit
5cebfb759c
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue