diff options
author | Michael Grzeschik <[email protected]> | 2022-04-03 01:27:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-04-21 18:15:33 +0200 |
commit | 9b969f93bcef9b3d9e92f1810e22bbd6c344a0e5 (patch) | |
tree | d1c7ac5ef3211fde1a40221837a75acdd87248a9 /drivers/usb/gadget/function/uvc_queue.c | |
parent | 61aa709ca58a0dbeeb817bfa9230c1a92979f2c6 (diff) |
usb: gadget: uvc: giveback vb2 buffer on req complete
On uvc_video_encode_isoc_sg the mapped vb2 buffer is returned
to early. Only after the last usb_request worked with the buffer
it is allowed to give it back to vb2. This patch fixes that.
Signed-off-by: Michael Grzeschik <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/gadget/function/uvc_queue.c')
-rw-r--r-- | drivers/usb/gadget/function/uvc_queue.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/uvc_queue.c b/drivers/usb/gadget/function/uvc_queue.c index 43acc071f0ad..f83500614954 100644 --- a/drivers/usb/gadget/function/uvc_queue.c +++ b/drivers/usb/gadget/function/uvc_queue.c @@ -325,8 +325,6 @@ void uvcg_complete_buffer(struct uvc_video_queue *queue, return; } - list_del(&buf->queue); - buf->buf.field = V4L2_FIELD_NONE; buf->buf.sequence = queue->sequence++; buf->buf.vb2_buf.timestamp = ktime_get_ns(); |