diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2020-08-11 23:59:37 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-09-10 15:27:04 +0300 |
commit | 468e986dac0e94194334ca6d0abf3af8c250792e (patch) | |
tree | a5b7587ee0b55eba3361ffbf982c08b7f3ff11c8 /drivers/media/platform/rcar-vin | |
parent | cdd4f7824994c9254acc6e415750529ea2d2cfe0 (diff) | |
download | linux-468e986dac0e94194334ca6d0abf3af8c250792e.tar.xz |
media: rcar_drif: Allocate v4l2_async_subdev dynamically
v4l2_async_notifier_add_subdev() requires the asd to be allocated
dynamically, but the rcar-drif driver embeds it in the
rcar_drif_graph_ep 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: d079f94c9046 ("media: platform: Switch to v4l2_async_notifier_add_subdev")
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>
Diffstat (limited to 'drivers/media/platform/rcar-vin')
0 files changed, 0 insertions, 0 deletions