From: Mark M. Hoffman Date: Tue, 3 May 2005 03:35:45 +0000 (-0400) Subject: [PATCH] USB: trivial error path fix X-Git-Tag: v2.6.13-rc1~68^2~583^2^2~63 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cebfb759cc75208c04590ad7f4485cdd822cf46;p=linux-2.6 [PATCH] USB: trivial error path fix Trivial fix to USB class-creation error path; please apply. Signed-off-by: Mark M. Hoffman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c index dfcbd05d0e..65ca131cc4 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;