diff options
author | 2020-08-11 22:59:35 +0200 | |
---|---|---|
committer | 2020-09-10 14:26:05 +0200 | |
commit | 6c11631480e9a0554ae5ee89dc12acaa1f1a93a0 (patch) | |
tree | 043d6aceb2275cce8ab5524e3001f0f4cb46f8b7 /sound/hda | |
parent | media: i2c: ov5640: Fail probe on unsupported bus_type (diff) | |
download | linux-6c11631480e9a0554ae5ee89dc12acaa1f1a93a0.tar.gz linux-6c11631480e9a0554ae5ee89dc12acaa1f1a93a0.tar.bz2 linux-6c11631480e9a0554ae5ee89dc12acaa1f1a93a0.zip |
media: v4l2-async: Document asd allocation requirements
The v4l2_async_notifier_add_subdev() function requires the asd pointer
it receives to be allocated dynamically, but doesn't explicitly say so.
Only one driver out of 13 get its right (atmel-sama5d2-isc.c, but with
memory leaks in the error paths), clearly showing we have an issue.
Update the v4l2_async_notifier_add_subdev() documentation to clearly
state the allocation requirement. Whether this will be enough to avoid
new offending code isn't certain, but it's a good first step
nonetheless.
Fixes: 9ca465312132 ("media: v4l: fwnode: Support generic parsing of graph endpoints in a device")
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 'sound/hda')
0 files changed, 0 insertions, 0 deletions