diff options
author | Colin Ian King <[email protected]> | 2015-03-16 22:42:24 +0000 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2015-03-22 18:14:50 +0100 |
commit | 37920a74abd6fdf0696730ba80a07843a62c9c54 (patch) | |
tree | 254856eadad2f766bfaa2ea7f868f9be78030fcc /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 7e184c28636dce594426cd7d8781d52d1dd447cd (diff) |
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 <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions