]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (10101): uvcvideo: Fix bulk URB processing when the header is erroneous
authorLaurent Pinchart <laurent.pinchart@skynet.be>
Tue, 16 Dec 2008 13:41:57 +0000 (10:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:40:31 +0000 (09:40 -0200)
commit04ad8b0d728332df04c9f5477abf3e349f0b59ef
tree67e3e53a108f741a1f1feda01b25f20370680a3d
parentfb723df8800fbb65f8e033ac9fbd6119b11447f3
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