]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: ipu6: Ensure stream_mutex is acquired when dealing with node list
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 27 Nov 2025 12:14:22 +0000 (14:14 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 13 Jan 2026 11:47:56 +0000 (12:47 +0100)
commit779bdaad2abf718fb8116839e818e58852874b4d
treee337c46a6058759d180307893eb1333643b2893c
parent98cc19a353abc8b48b7d58fd7a455e09e7c3aba3
media: ipu6: Ensure stream_mutex is acquired when dealing with node list

The ipu6 isys driver maintains the list of video buffer queues related to
a stream (in ipu6 context streams on the same CSI-2 virtual channel) and
this list is modified through VIDIOC_STREAMON and VIDIOC_STREAMOFF IOCTLs.
Ensure the common mutex is acquired when accessing the linked list, i.e.
the isys device context's stream_mutex.

Add a lockdep assert to ipu6_isys_get_buffer_list() and switch to guard()
while at it as the error handling becomes more simple this way.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c