linux/drivers/media/platform
Gaosheng Cui 891b5790be media: platform: allegro-dvt: Fix possible memory leak in allocate_buffers_internal()
commit 0f514068fb upstream.

The buffer in the loop should be released under the exception path,
otherwise there may be a memory leak here.

To mitigate this, free the buffer when allegro_alloc_buffer fails.

Fixes: f20387dfd0 ("media: allegro: add Allegro DVT video IP core driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-12-09 10:41:00 +01:00
..
allegro-dvt media: platform: allegro-dvt: Fix possible memory leak in allocate_buffers_internal() 2024-12-09 10:41:00 +01:00
amlogic media: ge2d: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
amphion media: amphion: Fix pm_runtime_set_suspended() with runtime pm enabled 2024-12-09 10:40:59 +01:00
aspeed media: videobuf2: core: Rename min_buffers_needed field in vb2_queue 2023-12-13 17:31:27 +01:00
atmel media: atmel-isi: use 'time_left' variable with wait_for_completion_timeout() 2024-08-09 07:56:39 +02:00
broadcom media: bcm2835-unicam: Depend on COMMON_CLK 2024-05-14 08:09:05 +02:00
cadence media: cadence: csi2rx: configure DPHY before starting source stream 2024-04-22 11:41:04 +02:00
chips-media move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imagination media: imagination: VIDEO_E5010_JPEG_ENC should depend on ARCH_K3 2024-08-28 10:01:10 +02:00
intel media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
marvell media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
mediatek media: mtk-jpeg: Fix null-ptr-deref during unload module 2024-12-09 10:40:58 +01:00
microchip media: microchip-isc: Drop v4l2_subdev_link_validate() for video devices 2024-08-26 16:36:11 +03:00
nuvoton media: nuvoton: Convert to platform remove callback returning void 2024-02-28 16:00:32 +01:00
nvidia media: tegra-vde: use 'time_left' variable with wait_for_completion_interruptible_timeout() 2024-08-09 07:56:39 +02:00
nxp media: imx-jpeg: Ensure power suppliers be suspended before detach them 2024-12-09 10:40:58 +01:00
qcom media: venus: Fix pm_runtime_set_suspended() with runtime pm enabled 2024-12-09 10:40:59 +01:00
raspberrypi media: raspberrypi: VIDEO_RASPBERRYPI_PISP_BE should depend on ARCH_BCM2835 2024-08-09 07:56:38 +02:00
renesas move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
rockchip media: platform: rga: fix 32-bit DMA limitation 2024-12-09 10:40:58 +01:00
samsung media: platform: exynos4-is: Fix an OF node reference leak in fimc_md_is_isp_available 2024-12-09 10:40:59 +01:00
st media: bdisp: use 'time_left' variable with wait_event_timeout() 2024-08-09 07:56:39 +02:00
sunxi media: sun4i_csi: Don't use v4l2_subdev_link_validate() for video device 2024-08-26 16:36:14 +03:00
ti media updates for v6.12-rc1 2024-09-23 15:27:58 -07:00
verisilicon media: verisilicon: av1: Fix reference video buffer pointer assignment 2024-12-09 10:40:59 +01:00
via media: via: Use correct dependency for camera sensor drivers 2023-09-14 12:38:17 +02:00
xilinx media: platform: xilinx: use for_each_endpoint_of_node() 2024-08-09 07:56:39 +02:00
Kconfig media: raspberrypi: Add support for PiSP BE 2024-06-27 13:06:47 +02:00
m2m-deinterlace.c media: m2m-deinterlace: remove unused struct 'vb2_dc_conf' 2024-05-31 13:51:17 +02:00
Makefile media: raspberrypi: Add support for PiSP BE 2024-06-27 13:06:47 +02:00
video-mux.c media: v4l2-subdev: Rename .init_cfg() operation to .init_state() 2023-12-04 10:37:47 +01:00