]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: media: ipu3: Return buffers outside of needless locking
authorMax Staudt <mstaudt@chromium.org>
Thu, 20 Jun 2024 14:45:42 +0000 (23:45 +0900)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 31 Aug 2024 07:40:42 +0000 (09:40 +0200)
commitcf27c5a1bd7cc0b8df26044b08be3488dec129f8
treee77e474582d0b68c3a39383f811192b27ef9d9e2
parent1395ff433cde9074f11ea24f092368570b5a544e
staging: media: ipu3: Return buffers outside of needless locking

In imgu_vb2_start_streaming()'s error path, imgu_return_all_buffers()
is outside the streaming_lock and after the call to
video_device_pipeline_stop().

Let's apply the same order in imgu_vb2_stop_streaming() as well.

Signed-off-by: Max Staudt <mstaudt@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/ipu3/ipu3-v4l2.c