Add a missing goto. We dereference usb_class on the next line. Found by smatch static checker. regards, dan carpenter Signed-off-by: Dan Carpenter <error27@xxxxxxxxx> --- orig/drivers/usb/core/file.c 2009-11-07 17:34:56.000000000 +0200 +++ devel/drivers/usb/core/file.c 2009-11-07 17:35:36.000000000 +0200 @@ -99,6 +99,7 @@ printk(KERN_ERR "class_create failed for usb devices\n"); kfree(usb_class); usb_class = NULL; + goto exit; } usb_class->class->devnode = usb_devnode; -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html