summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2026-04-17 08:19:29 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-05-21 22:14:07 +0300
commita15b773fe4ffa450b56347cc506b2d1405600f5d (patch)
treeb6e4038287398944f65d104d592d8f06cfbae8d0 /include/linux/timerqueue.h
parenta307316ae7db7961ac485463501a040495f4e634 (diff)
downloadlinux-a15b773fe4ffa450b56347cc506b2d1405600f5d.tar.xz
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 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions