linux-stable/drivers/media/platform/samsung
Katya Orlova f93844d2c8 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:59:32 +01:00
..
exynos-gsc media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
exynos4-is media: v4l: async: Set v4l2_device and subdev in async notifier init 2023-08-10 07:58:32 +02:00
s3c-camif media: s3c-camif: Avoid inappropriate kfree() 2023-11-20 11:59:32 +01:00
s5p-g2d media: g2d: Convert to platform remove callback returning void 2023-04-11 16:59:18 +02:00
s5p-jpeg media: jpeg-core: Remove redundant dev_err() 2023-08-10 07:58:36 +02:00
s5p-mfc media: s5p_mfc: Convert to platform remove callback returning void 2023-04-11 16:59:18 +02:00
Kconfig media: platform/*/Kconfig: make manufacturer menus more uniform 2022-03-18 05:58:35 +01:00
Makefile media: platform: Create vendor/{Makefile,Kconfig} files 2022-03-18 05:58:35 +01:00