mirror-linux/drivers/staging
Haoxiang Li fc5f8aec77 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: a8ef0488cc ("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>
2025-06-20 13:20:17 +02:00
..
axis-fifo staging: axis-fifo: Remove hardware resets for user errors 2025-04-25 16:14:25 +02:00
fbtft fbtft: Replace 'depends on FB_TFT' by 'if FB_TFT ... endif' 2025-04-15 16:32:35 +02:00
gpib treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
greybus staging: greybus: use new GPIO line value setter callbacks 2025-04-15 16:26:48 +02:00
iio IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
media media: imx: fix a potential memory leak in imx_media_csc_scaler_device_init() 2025-06-20 13:20:17 +02:00
most staging: most: Remove TODO contact information 2024-11-10 08:03:31 +01:00
nvec staging: Switch back to struct platform_driver::remove() 2024-10-09 11:54:53 +02:00
octeon staging: Switch back to struct platform_driver::remove() 2024-10-09 11:54:53 +02:00
rtl8723bs treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
sm750fb staging: sm750fb: rename `hw_sm750le_setBLANK` 2025-05-21 13:48:23 +02:00
vc04_services Merge 6.15-rc6 into staging-next 2025-05-13 08:37:56 +02:00
vme_user staging: vme_user: vme_tsi148.c: avoid parenthesis line ending 2024-12-29 11:33:11 +01:00
Kconfig staging: fieldbus: Delete unused driver 2024-11-04 00:53:07 +01:00
Makefile staging: fieldbus: Delete unused driver 2024-11-04 00:53:07 +01:00