diff options
| author | Miaoqian Lin <linmq006@gmail.com> | 2022-06-21 06:30:30 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-06-27 09:24:45 +0100 |
| commit | e0b212ec9d8177d6f7c404315293f6a085d6ee42 (patch) | |
| tree | fe9b343c78b66a3616e0486a450c43fb2435b90d /tools/perf/scripts/python/stackcollapse.py | |
| parent | 5b304046a81eda221b5d06a9c62f7b5e45530fa5 (diff) | |
| download | linux-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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
