Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cebfb75 authored by Mark M. Hoffman's avatar Mark M. Hoffman Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: trivial error path fix



Trivial fix to USB class-creation error path; please apply.

Signed-off-by: default avatarMark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 56b22935
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -82,6 +82,7 @@ int usb_major_init(void)


	usb_class = class_create(THIS_MODULE, "usb");
	usb_class = class_create(THIS_MODULE, "usb");
	if (IS_ERR(usb_class)) {
	if (IS_ERR(usb_class)) {
		error = PTR_ERR(usb_class);
		err("class_create failed for usb devices");
		err("class_create failed for usb devices");
		unregister_chrdev(USB_MAJOR, "usb");
		unregister_chrdev(USB_MAJOR, "usb");
		goto out;
		goto out;