kernel_samsung_a53x/drivers/media/platform/s3c-camif
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
..
camif-capture.c media: s3c-camif: Avoid inappropriate kfree() 2024-11-18 11:43:07 +01:00
camif-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
camif-core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
camif-regs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
camif-regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00