mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-06 02:24:14 +08:00
2cac7cbfb4
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
rcar-core.c | ||
rcar-csi2.c | ||
rcar-dma.c | ||
rcar-v4l2.c | ||
rcar-vin.h |