USB: fix possible null deref in init_usb_class()
authorDan Carpenter <error27@gmail.com>
Tue, 10 Nov 2009 09:02:08 +0000 (11:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:22 +0000 (11:55 -0800)
commited7487c2c28560a6b06900851ab63ebca1aea444
tree0c63d86549aa083f1751f0c39270d729318bb56a
parenta33279dfd825846325546b4d42d542b214ccb8d9
USB: fix possible null deref in init_usb_class()

Add a missing goto.  We dereference usb_class on the next line.

Found by smatch static checker.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/file.c