aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2026-04-17 05:19:29 +0000
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-05-21 21:14:07 +0200
commita15b773fe4ffa450b56347cc506b2d1405600f5d (patch)
treeb6e4038287398944f65d104d592d8f06cfbae8d0 /scripts/Makefile.thinlto
parentmedia: uvcvideo: Do not open code uvc_queue_get_current_buffer (diff)
media: uvcvideo: Avoid partial metadata buffers
If the metadata queue that is empty receives a new buffer while we are in the middle of processing a frame, the first metadata buffer will contain partial information. Avoid this by tracking the state of the metadata buffer and making sure that it is in sync with the data buffer. Now that we are at it, make sure that we skip buffers of size 1 or 0. They are not allowed by the spec... but it is a simple check to add and better be safe than sorry. Fixes: 088ead255245 ("media: uvcvideo: Add a metadata device node") Cc: stable@vger.kernel.org Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Link: https://patch.msgid.link/20260417-uvc-meta-partial-v2-2-31d274af7d2d@chromium.org Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com> Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions