diff options
| author | Haoxiang Li <haoxiang_li2024@163.com> | 2025-02-27 15:44:51 +0800 |
|---|---|---|
| committer | Hans Verkuil <hverkuil@xs4all.nl> | 2025-06-20 13:20:17 +0200 |
| commit | fc5f8aec77704373ee804b5dba0e0e5029c0f180 (patch) | |
| tree | 04e5c5362e9880fcc7e29e1bf962a1ceb55e2757 /tools/perf/scripts/python | |
| parent | ff8c5622f9f7c644e995d013af320b59e4d61b93 (diff) | |
| download | linux-fc5f8aec77704373ee804b5dba0e0e5029c0f180.tar.gz linux-fc5f8aec77704373ee804b5dba0e0e5029c0f180.zip | |
media: imx: fix a potential memory leak in imx_media_csc_scaler_device_init()
Add video_device_release() in label 'err_m2m' to release the memory
allocated by video_device_alloc() and prevent potential memory leaks.
Remove the reduntant code in label 'err_m2m'.
Fixes: a8ef0488cc59 ("media: imx: add csc/scaler mem2mem device")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
