Re: [PATCH v2 0/2] media: uvcvideo: Avoid partial metadata buffers

From: Hans de Goede

Date: Mon May 11 2026 - 10:23:24 EST


Hi,

On 17-Apr-26 07:19, Ricardo Ribalda wrote:
> The current code can lead to partial metadata buffers when the metadata
> queue transitions from empty to ready. Fix that.
>
> Signed-off-by: Ricardo Ribalda <ribalda@xxxxxxxxxxxx>

I've merged this in my local uvc/for-next branch.

I'll push this out to gitlab for CI later today.

Regards,

Hans



> ---
> Changes in v2: (Thanks Laurent)
> - Transition to UVC_BUF_STATE_ACTIVE with the data buffer
> - Link to v1: https://lore.kernel.org/r/20260415-uvc-meta-partial-v1-0-a0acc79a6300@xxxxxxxxxxxx
>
> ---
> Ricardo Ribalda (2):
> media: uvcvideo: Do not open code uvc_queue_get_current_buffer
> media: uvcvideo: Avoid partial metadata buffers
>
> drivers/media/usb/uvc/uvc_video.c | 23 +++++++++++------------
> 1 file changed, 11 insertions(+), 12 deletions(-)
> ---
> base-commit: 2e9a8a967f836cf879f35c7434025de265826cc1
> change-id: 20260415-uvc-meta-partial-a5767866d0e0
>
> Best regards,