diff options
author | 2024-11-22 16:55:24 +0200 | |
---|---|---|
committer | 2024-12-19 12:50:17 +0100 | |
commit | fb2bd86270cd0ad004f4c614ba4f8c63a5720e25 (patch) | |
tree | 05b513b88852ebc90977e717259b95380181eab1 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | media: i2c: ds90ub960: Fix shadowing of local variables (diff) | |
download | wireguard-linux-fb2bd86270cd0ad004f4c614ba4f8c63a5720e25.tar.xz wireguard-linux-fb2bd86270cd0ad004f4c614ba4f8c63a5720e25.zip |
media: mc: fix endpoint iteration
When creating links from a subdev to a sink, the current logic tries to
iterate over the endpoints of dev's fwnode.
This might not be correct when the subdev uses a different fwnode
compared to the dev's fwnode.
If, when registering, the subdev's fwnode is not set, the code inside
v4l2_async_register_subdev will set it to the dev's fwnode.
To fix this, just use the subdev's fwnode.
Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
Fixes: 0d3c81e82da9 ("media: v4l2-mc: add v4l2_create_fwnode_links helpers")
Cc: stable@vger.kernel.org
Reviewed-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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions