summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2022-06-21 06:30:30 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-27 09:24:45 +0100
commite0b212ec9d8177d6f7c404315293f6a085d6ee42 (patch)
treefe9b343c78b66a3616e0486a450c43fb2435b90d /tools/perf/scripts/python/flamegraph.py
parent5b304046a81eda221b5d06a9c62f7b5e45530fa5 (diff)
downloadlinux-e0b212ec9d8177d6f7c404315293f6a085d6ee42.tar.gz
linux-e0b212ec9d8177d6f7c404315293f6a085d6ee42.zip
media: tw686x: Fix memory leak in tw686x_video_init
video_device_alloc() allocates memory for vdev, when video_register_device() fails, it doesn't release the memory and leads to memory leak, call video_device_release() to fix this. Fixes: 704a84ccdbf1 ("[media] media: Support Intersil/Techwell TW686x-based video capture cards") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions