]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
media: uvcvideo: Protect queue internals with helper
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Thu, 23 Mar 2017 12:25:14 +0000 (08:25 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Dec 2018 08:10:06 +0000 (03:10 -0500)
commite829b262a6782ee36ee04e32a2fc7341385ac7fe
tree22240f51d2aafe89606bd23718732992a9eeda7f
parentc6d664fe8a7a47af1c63c037e20570d4abbda3c6
media: uvcvideo: Protect queue internals with helper

The URB completion operation obtains the current buffer by reading
directly into the queue internal interface.

Protect this queue abstraction by providing a helper
uvc_queue_get_current_buffer() which can be used by both the decode
task, and the uvc_queue_next_buffer() functions.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/uvc/uvc_queue.c
drivers/media/usb/uvc/uvc_video.c
drivers/media/usb/uvc/uvcvideo.h