diff options
author | Colin Ian King | 2015-03-16 23:42:24 +0100 |
---|---|---|
committer | Marc Kleine-Budde | 2015-03-22 18:14:50 +0100 |
commit | 37920a74abd6fdf0696730ba80a07843a62c9c54 (patch) | |
tree | 254856eadad2f766bfaa2ea7f868f9be78030fcc /.gitignore | |
parent | can: kvaser_usb: Fix sparse warning __le16 degrades to integer (diff) | |
download | kernel-qcow2-linux-37920a74abd6fdf0696730ba80a07843a62c9c54.tar.gz kernel-qcow2-linux-37920a74abd6fdf0696730ba80a07843a62c9c54.tar.xz kernel-qcow2-linux-37920a74abd6fdf0696730ba80a07843a62c9c54.zip |
can: gs_usb: check for kzalloc allocation failure
smatch detected the following issue:
drivers/net/can/usb/gs_usb.c:904 gs_usb_probe() error:
potential null dereference 'dev'. (kzalloc returns null)
Add a check for null return from kzalloc and return -ENOMEM
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions