aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorJesper Juhl <[email protected]>2012-04-11 23:23:41 +0200
committerMarc Kleine-Budde <[email protected]>2012-04-16 21:34:50 +0200
commita49bcabedc18319f673319d5e71b5751e3978179 (patch)
treebeefbfa8bee452e5876bff2fef0b49b397c1b332 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent8a9a0ea6032186e3030419262678d652b88bf6a8 (diff)
can: usb: PCAN-USB Pro: fix mem leaks in pcan_usb_pro_init() on error paths
If either call to pcan_usb_pro_send_req() in drivers/net/can/usb/peak_usb/pcan_usb_pro.c::pcan_usb_pro_init() fails, we'll leak the memory we allocated to 'usb_if' with kzalloc() when the 'usb_if' variable goes out of scope without having been assigned to anything as we 'return err;'. Fix this by adding appropriate kfree(usb_if) calls to the error paths. Signed-off-by: Jesper Juhl <[email protected]> Acked-by: Stephane Grosjean <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions