linux-yocto/drivers/staging
Haoxiang Li c842a6a8ac 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:26:08 +02:00
..
axis-fifo staging: axis-fifo: Correct handling of tx_fifo_depth for size validation 2025-05-18 08:21:22 +02:00
board
emxx_udc
fbtft staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() 2025-08-15 12:04:54 +02:00
fieldbus
gdm724x
greybus
iio staging: iio: ad5933: Correct settling cycles encoding per datasheet 2025-06-27 11:07:30 +01:00
ks7010
media media: imx: fix a potential memory leak in imx_media_csc_scaler_device_init() 2025-08-28 16:26:08 +02:00
most
nvec staging: nvec: Fix incorrect null termination of battery manufacturer 2025-08-15 12:04:56 +02:00
octeon
olpc_dcon
pi433
qlge
r8188eu
rtl8192e
rtl8192u
rtl8712
rtl8723bs staging: rtl8723bs: Avoid memset() in aes_cipher() and aes_decipher() 2025-07-06 10:58:01 +02:00
rts5208
sm750fb
vc04_services staging: vchiq_arm: Make vchiq_shutdown never fail 2025-08-15 12:04:46 +02:00
vme_user
vt6655
vt6656
wlan-ng
Kconfig
Makefile