OpenCloudOS-Kernel/drivers/media
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
..
cec media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
common Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
dvb-core treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
dvb-frontends Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
firewire media: firewire: Using uninitialized values in node_probe() 2020-07-04 11:57:10 +02:00
i2c media: i2c: ov5640: Fail probe on unsupported bus_type 2020-09-10 14:24:33 +02:00
mc media: mc-device.c: change media_device_request_alloc to match media_ioctl_info 2020-08-29 08:15:23 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: ipu3-cio2: Update Copyright year and fix indentation issues 2020-09-10 14:20:15 +02:00
platform media: rcar-csi2: Allocate v4l2_async_subdev dynamically 2020-09-10 14:27:26 +02:00
radio Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
rc Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
spi media: i2c/Kconfig: use sub-menus for I2C support 2020-04-16 10:34:40 +02:00
test-drivers media: vivid: fix compile warning/error 2020-09-08 11:54:00 +02:00
tuners Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
usb media: uvcvideo: Convey full colorspace information to V4L2 2020-09-10 14:06:27 +02:00
v4l2-core media: v4l2-fwnode: Use debug level for printing link frequencies 2020-09-10 14:21:02 +02:00
Kconfig media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00