aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-17 02:27:46 -0300
committerMauro Carvalho Chehab <[email protected]>2019-08-26 10:40:01 -0300
commit1c770f0f52dca1a2323c594f01f5ec6f1dddc97f (patch)
treea38ac3df1c5557a37df11481638b6a8d26873712 /tools/perf/scripts/python/bin/stackcollapse-report
parenta8ef0488cc592921a917362cca66af4a601987b9 (diff)
media: cpia2_usb: fix memory leaks
In submit_urbs(), 'cam->sbuf[i].data' is allocated through kmalloc_array(). However, it is not deallocated if the following allocation for urbs fails. To fix this issue, free 'cam->sbuf[i].data' if usb_alloc_urb() fails. Signed-off-by: Wenwen Wang <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions