summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorColin Ian King2015-03-16 23:42:24 +0100
committerMarc Kleine-Budde2015-03-22 18:14:50 +0100
commit37920a74abd6fdf0696730ba80a07843a62c9c54 (patch)
tree254856eadad2f766bfaa2ea7f868f9be78030fcc /net
parentcan: kvaser_usb: Fix sparse warning __le16 degrades to integer (diff)
downloadkernel-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 'net')
0 files changed, 0 insertions, 0 deletions