Re: [PATCH v5 01/12] media: uvcvideo: Fix race condition handling events

2020-12-22 Thread Laurent Pinchart
Hi Ricardo, Thank you for the patch. On Mon, Dec 21, 2020 at 05:48:08PM +0100, Ricardo Ribalda wrote: > The control and its data needs to be copied to the workqueue at the same > time to avoid half-updates of the events. > This is, events reported to userspace were the control id does not match

[PATCH v5 01/12] media: uvcvideo: Fix race condition handling events

2020-12-21 Thread Ricardo Ribalda
The control and its data needs to be copied to the workqueue at the same time to avoid half-updates of the events. This is, events reported to userspace were the control id does not match its value. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 2 +-