linux/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
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -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
sisusb_struct.h
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