linux/drivers/media/platform
Katya Orlova db89f551b7 media: s3c-camif: Avoid inappropriate kfree()
[ Upstream commit 61334819ac ]

s3c_camif_register_video_node() works with video_device structure stored
as a field of camif_vp, so it should not be kfreed.
But there is video_device_release() on error path that do it.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: babde1c243 ("[media] V4L: Add driver for S3C24XX/S3C64XX SoC series camera interface")
Signed-off-by: Katya Orlova <e.orlova@ispras.ru>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:08:27 +01:00
..
allegro-dvt
am437x media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:36:44 +01:00
atmel media: atmel: atmel-sama7g5-isc: fix warning in configs without OF 2022-08-17 14:23:20 +02:00
cadence
coda media: coda: Add check for kmalloc 2022-12-31 13:14:18 +01:00
davinci
exynos4-is media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:36:44 +01:00
exynos-gsc
imx-jpeg media: imx-jpeg: Apply clk_bulk api instead of operating specific clk 2023-03-10 09:39:45 +01:00
marvell-ccic
meson/ge2d media: platform: fix some double free in meson-ge2d and mtk-jpeg and s5p-mfc 2022-10-26 12:35:45 +02:00
mtk-jpeg media: mtk-jpeg: Fix use after free bug due to uncanceled work 2023-10-19 23:05:35 +02:00
mtk-mdp media: platform: mtk-mdp: Fix mdp_ipi_comm structure alignment 2022-08-17 14:23:28 +02:00
mtk-vcodec media: mediatek: vcodec: Return NULL if no vdec_fb is found 2023-09-19 12:22:44 +02:00
mtk-vpu media: platform: mediatek: vpu: fix NULL ptr dereference 2023-08-26 14:23:24 +02:00
omap
omap3isp media: platform: ti: Add missing check for devm_regulator_get 2023-03-10 09:39:44 +01:00
qcom media: venus: hfi_venus: Write to VIDC_CTRL_INIT after unmasking interrupts 2023-09-19 12:22:51 +02:00
rcar-vin media: rcar-vin: Select correct interrupt mode for V4L2_FIELD_ALTERNATE 2023-06-09 10:32:20 +02:00
rockchip media: rkisp1: Zero v4l2_subdev_format fields in when validating links 2022-11-10 18:15:33 +01:00
s3c-camif media: s3c-camif: Avoid inappropriate kfree() 2023-11-20 11:08:27 +01:00
s5p-g2d
s5p-jpeg
s5p-mfc media: s5p-mfc: Fix in register read and write for H264 2023-01-12 11:59:06 +01:00
sti media: bdisp: Add missing check for create_workqueue 2023-05-11 23:00:22 +09:00
stm32
sunxi
ti-vpe media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:36:44 +01:00
vsp1 media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:36:44 +01:00
xilinx media: xilinx: vipp: Fix refcount leak in xvip_graph_dma_init 2022-10-26 12:35:06 +02:00
aspeed-video.c
fsl-viu.c
imx-pxp.c
imx-pxp.h
Kconfig
m2m-deinterlace.c
Makefile
mx2_emmaprp.c
pxa_camera.c
rcar_drif.c
rcar_fdp1.c media: rcar_fdp1: Fix refcount leak in probe and remove function 2023-05-11 23:00:24 +09:00
rcar_jpu.c
rcar-fcp.c
renesas-ceu.c
sh_vou.c
via-camera.c
via-camera.h
video-mux.c