media: uvcvideo: Mark buffer error where overflow
authorBaoyou Xie <baoyou.xie@linaro.org>
Thu, 7 Sep 2017 02:59:48 +0000 (22:59 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 16:32:29 +0000 (11:32 -0500)
commitdfc1648c576719b5a2701805aab1e208789d5969
treec9c49af6c8c6c5936f9e56a8d2cec7911b14c9de
parent5ba3dff4f3f4b0a3c8775d6ea48c07b11a7ad790
media: uvcvideo: Mark buffer error where overflow

Some cameras post inaccurate frame where next frame data overlap
it. this results in screen flicker, and it need to be prevented.

So this patch marks the buffer error to discard the frame where
buffer overflow.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_video.c