aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMuhammad Usama Anjum <[email protected]>2021-03-24 19:07:53 +0100
committerMauro Carvalho Chehab <[email protected]>2021-04-06 10:36:58 +0200
commit0ae10a7dc8992ee682ff0b1752ff7c83d472eef1 (patch)
tree862341f7a5da9bb8f6b822a73d7aac999e88b7fe /tools/perf/scripts/python/bin/stackcollapse-record
parent73c9a3f3b3465be8b7c71ba736c2696290a43bf8 (diff)
media: em28xx: fix memory leak
If some error occurs, URB buffers should also be freed. If they aren't freed with the dvb here, the em28xx_dvb_fini call doesn't frees the URB buffers as dvb is set to NULL. The function in which error occurs should do all the cleanup for the allocations it had done. Tested the patch with the reproducer provided by syzbot. This patch fixes the memleak. Reported-by: [email protected] Signed-off-by: Muhammad Usama Anjum <[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-record')
0 files changed, 0 insertions, 0 deletions