summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2022-04-01 18:44:58 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-05-08 07:09:48 +0200
commit18a9b21f7a9d417ac07e2d2717a6a9679b664627 (patch)
tree3e8e60837e5054a45ebaea9187aad281a5060db7 /tools/perf/scripts/python/bin
parent1c8af8e93748d173b6eac55108455aca18bd93c9 (diff)
downloadlinux-18a9b21f7a9d417ac07e2d2717a6a9679b664627.tar.gz
linux-18a9b21f7a9d417ac07e2d2717a6a9679b664627.zip
media: uvcvideo: Fix memory leak if uvc_ctrl_add_mapping fails
Move all the life cycle of the name to add_mapping. This simplifies the error handling inside uvc_ioctl_ctrl_map and solves a memory leak when kemmdup fails. Also make sure that for custom controls, the user provides a valid name. Fixes: 07adedb5c606 ("media: uvcvideo: Use control names from framework") Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions