linux-yocto/drivers/staging
Haoxiang Li d8c94df206 media: imx: fix a potential memory leak in imx_media_csc_scaler_device_init()
commit fc5f8aec77 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:34:27 +02:00
..
axis-fifo staging: axis-fifo: Remove hardware resets for user errors 2025-04-25 16:14:25 +02:00
fbtft staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() 2025-08-15 16:38:30 +02:00
gpib staging: gpib: Add init response codes for new ni-usb-hs+ 2025-08-20 18:40:56 +02:00
greybus staging: greybus: gbphy: fix up const issue with the match callback 2025-08-15 16:38:34 +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-08-28 16:34:27 +02:00
most staging: most: Remove TODO contact information 2024-11-10 08:03:31 +01:00
nvec staging: nvec: Fix incorrect null termination of battery manufacturer 2025-08-15 16:38:35 +02:00
octeon
rtl8723bs staging: rtl8723bs: Avoid memset() in aes_cipher() and aes_decipher() 2025-06-19 17:33:43 +02:00
sm750fb staging: sm750fb: rename hw_sm750le_setBLANK 2025-05-21 13:48:23 +02:00
vc04_services staging: vchiq_arm: Make vchiq_shutdown never fail 2025-07-16 09:36:50 +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