linux/drivers/staging
Haoxiang Li a5c8984a5b 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>
History 2025-08-28 16:31:00 +02:00
..
axis-fifo staging: axis-fifo: Correct handling of tx_fifo_depth for size validation 2025-05-18 08:24:51 +02:00
fbtft staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() 2025-08-15 12:13:35 +02:00
fieldbus driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
gdm724x staging: gdm724x: constantify the struct device_type usage 2024-02-17 17:30:35 +01:00
greybus staging: greybus: gbphy: fix up const issue with the match callback 2025-08-15 12:13:37 +02:00
iio staging: iio: ad5933: Correct settling cycles encoding per datasheet 2025-06-27 11:11:23 +01:00
media media: imx: fix a potential memory leak in imx_media_csc_scaler_device_init() 2025-08-28 16:31:00 +02:00
most staging: most: video: Fixed minor capitalization and grammatical issues 2024-07-30 09:20:26 +02:00
nvec staging: nvec: Fix incorrect null termination of battery manufacturer 2025-08-15 12:13:38 +02:00
octeon netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
olpc_dcon staging: olpc_dcon: Use backlight power constants 2024-08-13 11:26:13 +02:00
rtl8192e move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
rtl8712 staging: rtl8712: remove unused drvinfo_sz from update_recvframe_attrib 2024-09-13 07:31:55 +02:00
rtl8723bs staging: rtl8723bs: Avoid memset() in aes_cipher() and aes_decipher() 2025-07-06 11:01:42 +02:00
rts5208 Staging driver changes for 6.10-rc1 2024-05-22 12:11:48 -07:00
sm750fb video/nomodeset: Select nomodeset= parameter with CONFIG_VIDEO 2024-01-23 10:11:38 +01:00
vc04_services staging: vchiq_arm: Make vchiq_shutdown never fail 2025-08-01 09:48:40 +01:00
vme_user staging: vme_user: changed geoid data type from int to u32 2024-09-05 16:45:01 +02:00
vt6655 staging: vt6655: Rename variable apTD1Rings 2024-09-13 07:32:50 +02:00
vt6656 Staging driver updates for 6.11-rc1 2024-07-19 15:46:29 -07:00
Kconfig staging: ks7010: Remove unused driver 2024-07-30 09:21:00 +02:00
Makefile staging: ks7010: Remove unused driver 2024-07-30 09:21:00 +02:00