linux-yocto/drivers/staging
Haoxiang Li 025617f485 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:24:29 +02:00
..
android
axis-fifo staging: axis-fifo: Correct handling of tx_fifo_depth for size validation 2025-05-18 08:20:36 +02:00
board
clocking-wizard
emxx_udc
fbtft staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() 2025-08-28 16:24:06 +02:00
fieldbus
fwserial
gdm724x
greybus
gs_fpgaboot
iio staging: iio: ad5933: Correct settling cycles encoding per datasheet 2025-06-27 11:05:26 +01:00
ks7010
media media: imx: fix a potential memory leak in imx_media_csc_scaler_device_init() 2025-08-28 16:24:29 +02:00
most
mt7621-dma
mt7621-dts
mt7621-pci
netlogic
nvec staging: nvec: Fix incorrect null termination of battery manufacturer 2025-08-28 16:24:07 +02:00
octeon
octeon-usb
olpc_dcon
pi433
qlge
r8188eu
ralink-gdma
rtl8192e
rtl8192u
rtl8712
rtl8723bs staging: rtl8723bs: Avoid memset() in aes_cipher() and aes_decipher() 2025-07-10 15:57:39 +02:00
rts5208
sm750fb
unisys
vc04_services
vme
vt6655
vt6656
wfx
wlan-ng
Kconfig
Makefile