aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSakari Ailus <[email protected]>2020-12-19 23:29:58 +0100
committerMauro Carvalho Chehab <[email protected]>2021-01-12 17:06:16 +0100
commitfb18802a338b36f675a388fc03d2aa504a0d0899 (patch)
treeffa8ce23a4fd2f4122bcf1cbb9ec38241f4743fe /tools/perf/scripts/python
parentf7c7d6ccc503c0a5f4e5debb570b55bf2eb24c73 (diff)
media: v4l: ioctl: Fix memory leak in video_usercopy
When an IOCTL with argument size larger than 128 that also used array arguments were handled, two memory allocations were made but alas, only the latter one of them was released. This happened because there was only a single local variable to hold such a temporary allocation. Fix this by adding separate variables to hold the pointers to the temporary allocations. Reported-by: Arnd Bergmann <[email protected]> Reported-by: [email protected] Fixes: d14e6d76ebf7 ("[media] v4l: Add multi-planar ioctl handling code") Cc: [email protected] Signed-off-by: Sakari Ailus <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Acked-by: Hans Verkuil <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions