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: 769afd212b16 ("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
..
2020-08-28 21:17:56 +02:00
2020-09-04 13:19:19 -07:00
2020-08-02 18:26:51 +03:00
2020-08-28 16:38:29 -07:00
2020-08-15 08:18:22 -07:00
2020-09-06 09:59:27 -07:00
2020-09-04 12:12:39 -07:00
2020-09-07 16:13:06 +02:00
2020-09-07 16:13:06 +02:00
2020-08-26 10:44:15 -07:00
2020-08-29 12:37:00 -07:00
2020-08-05 19:24:27 -07:00
2020-08-28 10:15:33 -07:00
2020-08-26 10:50:50 -07:00
2020-08-31 11:22:57 -07:00
2020-09-04 13:04:51 -07:00
2020-08-14 16:00:09 -07:00
2020-09-01 14:12:44 -07:00
2020-08-26 10:58:20 -07:00
2020-08-30 10:51:03 -07:00
2020-08-30 10:56:12 -07:00
2020-09-06 09:59:27 -07:00