From: Colin Ian King Date: Fri, 15 Mar 2013 17:14:57 +0000 (+0000) Subject: usb: misc: sisusbvga: Avoid NULL pointer dereference from sisusb X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~248 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1645eefc8358d0a9dbeba254e51aa89de4d80a4;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed