[PATCH] sisusbvga: use proper device for dev_err() during probe

2013-01-07 Thread Nickolai Zeldovich
If kzalloc returns NULL, do not dereference the said NULL pointer as the first argument to dev_err(); use >dev instead. Similarly, before sisusb->sisusb_dev has been initialized to dev, use dev_err(>dev) instead. Signed-off-by: Nickolai Zeldovich --- drivers/usb/misc/sisusbvga/sisusb.c |4

[PATCH] sisusbvga: use proper device for dev_err() during probe

2013-01-07 Thread Nickolai Zeldovich
If kzalloc returns NULL, do not dereference the said NULL pointer as the first argument to dev_err(); use dev-dev instead. Similarly, before sisusb-sisusb_dev has been initialized to dev, use dev_err(dev-dev) instead. Signed-off-by: Nickolai Zeldovich nicko...@csail.mit.edu ---