android_kernel_motorola_sm6225/drivers/usb/misc/sisusbvga
Colin Ian King a1645eefc8 usb: misc: sisusbvga: Avoid NULL pointer dereference from sisusb
A failed kzalloc() is reported with a dev_err that dereferences the null
sisusb, this will cause a NULL pointer deference error.

Instead, pass dev->dev to the dev_err() rather than &sisusb->sisusb_dev->dev

Smatch analysis:

drivers/usb/misc/sisusbvga/sisusb.c:3087 sisusb_probe() error: potential null
  dereference 'sisusb'.  (kzalloc returns null)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-15 11:51:01 -07:00
..
Kconfig usb: misc: SiS usbvga dangle: accept MUSB_HDRC as a fast enough host controller 2009-06-15 21:44:39 -07:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
sisusb.c usb: misc: sisusbvga: Avoid NULL pointer dereference from sisusb 2013-03-15 11:51:01 -07:00
sisusb.h USB: sisusbvga: drop usb_buffer_alloc 2009-09-23 06:46:19 -07:00
sisusb_con.c usb: sisusb_con.c: fix shadows sparse warning 2010-05-20 13:21:41 -07:00
sisusb_init.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
sisusb_init.h USB: SisUSB2VGA: Lindent drivers/usb/misc/sisusbvga/sisusb_init.h 2007-10-12 14:55:12 -07:00
sisusb_struct.h USB: SisUSB2VGA: Lindent drivers/usb/misc/sisusbvga/sisusb_struct.h 2007-10-12 14:55:13 -07:00