aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <[email protected]>2014-08-21 16:54:45 +0200
committerFelipe Balbi <[email protected]>2014-08-21 10:03:41 -0500
commite73798572e115f73066567f5840d4e5c21da70a8 (patch)
tree05ac8625b4c58428f8c7af4e4c6a3cdbaeaea75b /tools/perf/scripts/python/event_analyzing_sample.py
parentee7ec7f6b39d2ae25dca000398929edaa2ce412d (diff)
usb: gadget: f_uvc: fix potential memory leak
If uvc->control_buf is successfuly allocated but uvc->control_req is not, uvc->control_buf is not freed in the error recovery path. With this patch applied uvc->control_buf is freed unconditionally; if it happens to be NULL kfree on it is safe anyway. Signed-off-by: Andrzej Pietrasiewicz <[email protected]> Acked-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions