OpenCloudOS-Kernel/drivers/media/v4l2-core
Cosmin Tanislav 3e4a43a965 media: mc: fix endpoint iteration
commit fb2bd86270cd0ad004f4c614ba4f8c63a5720e25 upstream.

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: 0d3c81e82d ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-17 09:40:33 +01:00
..
Kconfig media: Add MIPI CCI register access helper functions 2023-08-10 07:58:38 +02:00
Makefile media: Add MIPI CCI register access helper functions 2023-08-10 07:58:38 +02:00
tuner-core.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
v4l2-async.c media: v4l: async: Fix NULL pointer dereference in adding ancillary links 2024-08-03 08:53:47 +02:00
v4l2-cci.c media: v4l2-cci: Always assign *val 2024-09-08 07:54:44 +02:00
v4l2-common.c media: mediatek: vcodec: Add capture format to support 10bit raster mode 2023-08-10 07:58:34 +02:00
v4l2-compat-ioctl32.c media: v4l2-core: zero field base in struct v4l2_framebuffer 2023-03-20 00:32:56 +01:00
v4l2-ctrls-api.c media: v4l2-ctrls-api: fix error handling for v4l2_g_ctrl() 2024-11-14 13:19:34 +01:00
v4l2-ctrls-core.c media: AV1: Make sure that bit depth in correctly initialize 2023-06-09 16:13:38 +01:00
v4l2-ctrls-defs.c media: Add AV1 uAPI 2023-06-09 16:13:01 +01:00
v4l2-ctrls-priv.h
v4l2-ctrls-request.c
v4l2-dev.c media: v4l2-core: hold videodev_lock until dev reg, finishes 2024-06-16 13:47:36 +02:00
v4l2-device.c
v4l2-dv-timings.c media: v4l2-core: v4l2-dv-timings: check cvt/gtf result 2024-12-09 10:32:51 +01:00
v4l2-event.c
v4l2-fh.c
v4l2-flash-led-class.c
v4l2-fwnode.c media: v4l: async: Set v4l2_device and subdev in async notifier init 2023-08-10 07:58:32 +02:00
v4l2-h264.c media: drivers/media/v4l2-core/v4l2-h264 : add detection of null pointers 2023-02-08 07:33:41 +01:00
v4l2-i2c.c
v4l2-ioctl.c media: mediatek: vcodec: Add capture format to support 10bit raster mode 2023-08-10 07:58:34 +02:00
v4l2-jpeg.c media: v4l2-jpeg: ignore the unknown APP14 marker 2023-02-08 07:25:40 +01:00
v4l2-mc.c media: mc: fix endpoint iteration 2025-02-17 09:40:33 +01:00
v4l2-mem2mem.c media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity 2024-03-26 18:19:45 -04:00
v4l2-spi.c
v4l2-subdev-priv.h media: v4l2-core: Make the v4l2-core code enable/disable the privacy LED if present 2023-02-03 10:22:34 +01:00
v4l2-subdev.c media: v4l: Don't turn on privacy LED if streamon fails 2024-06-12 11:12:37 +02:00
v4l2-trace.c
v4l2-vp9.c
videobuf-core.c
videobuf-dma-contig.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
videobuf-dma-sg.c mm/gup: remove vmas parameter from pin_user_pages() 2023-06-09 16:25:26 -07:00
videobuf-vmalloc.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00