summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2015-03-17 01:42:24 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-03-22 20:14:50 +0300
commit37920a74abd6fdf0696730ba80a07843a62c9c54 (patch)
tree254856eadad2f766bfaa2ea7f868f9be78030fcc /scripts/gdb/linux/modules.py
parent7e184c28636dce594426cd7d8781d52d1dd447cd (diff)
downloadlinux-37920a74abd6fdf0696730ba80a07843a62c9c54.tar.xz
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 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions