kernel_samsung_a53x/drivers/media/platform
Katya Orlova 18e4afcfa8 media: s3c-camif: Avoid inappropriate kfree()
[ Upstream commit 61334819aca018c3416ee6c330a08a49c1524fc3 ]

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: babde1c243b2 ("[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>
2024-11-18 11:43:07 +01:00
..
am437x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atmel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cadence Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coda Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davinci Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos mfc: Reduce QoS boosting from Samsung hacks 2024-11-17 17:43:58 +01:00
exynos-gsc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos4-is Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
marvell-ccic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk-jpeg media: mtk-jpeg: Fix use after free bug due to uncanceled work 2024-11-08 11:25:47 +01:00
mtk-mdp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk-vcodec Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk-vpu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap3isp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar-vin Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rockchip/rga Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c-camif media: s3c-camif: Avoid inappropriate kfree() 2024-11-18 11:43:07 +01:00
s5p-g2d Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s5p-jpeg Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s5p-mfc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunxi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti-vpe Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vsp1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xilinx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aspeed-video.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl-viu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-pxp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx-pxp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
m2m-deinterlace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mx2_emmaprp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa_camera.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar-fcp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar_drif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar_fdp1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar_jpu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
renesas-ceu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sh_vou.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
via-camera.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
via-camera.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
video-mux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00