V4L/DVB (10101): uvcvideo: Fix bulk URB processing when the header is erroneous
commitf8dd4af6d44b4b738f125f6a21afa885f3b1d13b
authorLaurent Pinchart <laurent.pinchart@skynet.be>
Tue, 16 Dec 2008 13:41:57 +0000 (16 10:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:40:31 +0000 (30 09:40 -0200)
tree67e3e53a108f741a1f1feda01b25f20370680a3d
parent4e96fd088cf6fb95ba4b212e5e72bac1e6d34e79
V4L/DVB (10101): uvcvideo: Fix bulk URB processing when the header is erroneous

When the first bulk URB of a video payload contains an erroneous header, or
when no V4L2 buffer is available, the whole payload must be dropped. Change
the skip logic to drop all bulk URBs until the end of the payload instead of
the first one only.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_video.c