linux/drivers/media/platform
Laurent Pinchart 2cac7cbfb4 media: rcar-csi2: Allocate v4l2_async_subdev dynamically
v4l2_async_notifier_add_subdev() requires the asd to be allocated
dynamically, but the rcar-csi2 driver embeds it in the rcar_csi2
structure. This causes memory corruption when the notifier is destroyed
at remove time with v4l2_async_notifier_cleanup().

Fix this issue by registering the asd with
v4l2_async_notifier_add_fwnode_subdev(), which allocates it dynamically
internally.

Fixes: 769afd212b ("media: rcar-csi2: add Renesas R-Car MIPI CSI-2 receiver driver")
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-10 14:27:26 +02:00
..
am437x media: use v4l2_rect_enclosed helper 2020-07-04 12:30:13 +02:00
atmel media: atmel: atmel-isc: rework component offsets 2020-07-19 07:55:39 +02:00
cadence media: Kconfig files: use select for V4L2 subdevs and MC 2020-04-14 10:29:05 +02:00
coda media: coda: no need to check return value of debugfs_create functions 2020-09-01 14:13:26 +02:00
davinci media: davinci: vpif_capture: fix potential double free 2020-08-06 11:32:02 +02:00
exynos4-is media: exynos4-is: no need to check return value of debugfs_create functions 2020-09-01 14:13:26 +02:00
exynos-gsc media: Add V4L2_TYPE_IS_CAPTURE helper 2020-07-19 08:13:24 +02:00
marvell-ccic media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
mtk-jpeg media: platform: Add jpeg enc feature 2020-08-28 15:38:39 +02:00
mtk-mdp media: mtk-mdp: Fix a refcounting bug on error in init 2020-08-06 11:27:45 +02:00
mtk-vcodec media: mtk-vcodec: vdec_vp9_if.c: fix comparison to bool 2020-08-29 08:06:14 +02:00
mtk-vpu media: mtk-vpu: no need to check return value of debugfs_create functions 2020-09-01 14:13:26 +02:00
omap media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
omap3isp media: omap3isp: Fix memleak in isp_probe 2020-09-10 14:09:25 +02:00
qcom media: venus: place extern venus_fw_debug on a header file 2020-09-03 11:09:54 +02:00
rcar-vin media: rcar-csi2: Allocate v4l2_async_subdev dynamically 2020-09-10 14:27:26 +02:00
rockchip/rga media: rockchip: rga: Only set output CSC mode for RGB input 2020-07-04 12:44:59 +02:00
s3c-camif media: samsung: Rename Samsung and Exynos to lowercase 2020-07-04 12:41:12 +02:00
s5p-g2d media: s5p-g2d: Fix a memory leak in an error handling path in 'g2d_probe()' 2020-07-19 08:14:00 +02:00
s5p-jpeg media: use v4l2_rect_enclosed helper 2020-07-04 12:30:13 +02:00
s5p-mfc media: s5p-mfc: Use standard frame skip mode control 2020-09-01 14:13:29 +02:00
sti media: sti: no need to check return value of debugfs_create functions 2020-09-01 14:13:26 +02:00
stm32 media: move CEC platform drivers to a separate directory 2020-04-15 12:06:40 +02:00
sunxi media: sunxi: sun8i-rotate.c: remove useless error message 2020-08-29 07:47:04 +02:00
ti-vpe media: ti-vpe: cal: Fix compilation on 32-bit ARM 2020-08-26 16:28:57 +02:00
vsp1 media: vsp1: dl: Fix NULL pointer dereference on unbind 2020-07-04 12:02:02 +02:00
xilinx media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver 2020-06-23 13:11:46 +02:00
aspeed-video.c media: media/platform: drop vb2_queue_release() 2020-08-28 15:02:26 +02:00
fsl-viu.c media: fsl-viu: Do not redefine out_be32()/in_be32() for CONFIG_M68K 2020-08-29 08:07:48 +02:00
imx-pxp.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
imx-pxp.h media: imx-pxp: add i.MX Pixel Pipeline driver 2018-09-11 13:32:17 -04:00
Kconfig media: mtk-vcodec: fix Kconfig help text 2020-08-26 18:51:00 +02:00
m2m-deinterlace.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
Makefile media: media: sh_veu: Remove driver 2020-05-14 14:34:38 +02:00
mx2_emmaprp.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
pxa_camera.c media: pxa_camera: convert tasklets to use new tasklet_setup() API 2020-08-29 08:13:36 +02:00
rcar_drif.c media: rcar_drif: Allocate v4l2_async_subdev dynamically 2020-09-10 14:27:04 +02:00
rcar_fdp1.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
rcar_jpu.c media: Add V4L2_TYPE_IS_CAPTURE helper 2020-07-19 08:13:24 +02:00
rcar-fcp.c media: rcar-fcp: Drop local dma_parms 2020-09-10 14:06:27 +02:00
renesas-ceu.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
sh_vou.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
via-camera.c Power management updates for 5.7-rc1 2020-03-30 15:05:01 -07:00
via-camera.h media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
video-mux.c media: video-mux: Create media links in bound notifier 2020-05-18 14:20:56 +02:00