Re: [PATCH] [media] uvcvideo: Fix marking buffer erroneous in case of FID toggling

2014-03-28 Thread Anton Leontiev
ond 'const' after pointer character '*'? I thought it marks pointer itself as constant for type-checking opposite to first 'const', which marks memory it points to as constant for type-checking. I understand that the function is simple enough to verify it by hand but it's

Re: [PATCH] [media] uvcvideo: Fix marking buffer erroneous in case of FID toggling

2014-03-27 Thread Anton Leontiev
26.03.2014 21:41, Laurent Pinchart wrote: > Hi Anton, > > Thank you for the patch. > > On Tuesday 25 March 2014 08:40:57 Anton Leontiev wrote: >> Set error bit for incomplete buffers when end of buffer is detected by >> FID toggling (for example when last transaction

[PATCH] [media] uvcvideo: Fix marking buffer erroneous in case of FID toggling

2014-03-24 Thread Anton Leontiev
Set error bit for incomplete buffers when end of buffer is detected by FID toggling (for example when last transaction with EOF is lost). This prevents passing incomplete buffers to the userspace. Signed-off-by: Anton Leontiev --- drivers/media/usb/uvc/uvc_video.c | 21 +++-- 1