OpenCloudOS-Kernel/drivers/usb/misc
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
..
sisusbvga usb: misc: sisusbvga: Avoid NULL pointer dereference from sisusb 2013-03-15 11:51:01 -07:00
Kconfig USB: misc: Add USB3503 High-Speed Hub Controller 2013-01-11 12:12:07 -08:00
Makefile USB: misc: Add USB3503 High-Speed Hub Controller 2013-01-11 12:12:07 -08:00
adutux.c USB: convert drivers/usb/* to use module_usb_driver() 2011-11-18 09:34:02 -08:00
appledisplay.c USB: appledisplay.c: remove dbg() usage 2012-05-01 21:33:54 -07:00
cypress_cy7c63.c USB: convert drivers/usb/* to use module_usb_driver() 2011-11-18 09:34:02 -08:00
cytherm.c USB: convert drivers/usb/* to use module_usb_driver() 2011-11-18 09:34:02 -08:00
emi26.c USB: emi26.c: remove err() usage 2012-04-20 16:53:37 -07:00
emi62.c USB: emi62: remove __devinit* from the struct usb_device_id table 2012-08-17 17:50:45 -07:00
ezusb.c Merge 3.7-rc3 into usb-next. 2012-10-29 09:04:39 -07:00
ftdi-elan.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
idmouse.c USB: idmouse.c: remove dbg() usage 2012-05-01 21:33:58 -07:00
iowarrior.c USB: iowarrior.c: remove err() usage 2012-04-20 16:53:45 -07:00
isight_firmware.c Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb 2012-01-09 12:09:47 -08:00
ldusb.c USB: ldusb.c: remove err() usage 2012-04-20 16:53:47 -07:00
legousbtower.c USB: legousbtower.c: remove a bogus NULL check 2012-08-15 15:17:39 -07:00
rio500.c drivers/usb/misc/rio500.c: removes unnecessary semicolon 2012-09-13 21:48:48 -07:00
rio500_usb.h
trancevibrator.c USB: convert drivers/usb/* to use module_usb_driver() 2011-11-18 09:34:02 -08:00
usb3503.c USB: misc: usb3503: use module_i2c_driver to simplify the code 2013-03-15 11:48:10 -07:00
usb_u132.h
usblcd.c USB: usblcd.c: remove dbg() usage 2012-05-01 21:34:03 -07:00
usbled.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid 2012-01-10 10:48:28 -08:00
usbsevseg.c USB: usbsevseg: fix max length 2012-01-24 12:08:36 -08:00
usbtest.c USB: altsetting overrides for usbtest 2013-01-31 10:09:19 +01:00
uss720.c USB: uss720.c: remove dbg() usage 2012-05-01 21:34:07 -07:00
yurex.c USB: yurex.c: remove dbg() usage 2012-05-01 21:34:11 -07:00