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
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
---
2 matches
Mail list logo