V4L/DVB (10651): uvcvideo: Ignore empty bulk URBs
authorLaurent Pinchart <laurent.pinchart@skynet.be>
Sat, 14 Feb 2009 22:39:08 +0000 (19:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:51 +0000 (12:42 -0300)
commitc90e777976f6237a0cdb644c6a9406907939b174
tree7512b145c20e5025618763220078f98f8f3294ab
parent72362422f3a9cb66e26fa9f0d90d3ef5241e78ba
V4L/DVB (10651): uvcvideo: Ignore empty bulk URBs

Devices may send a zero-length packet to signal the end of a bulk payload. If
the payload size is a multiple of the URB size the zero-length packet will be
received by the URB completion handler. Handle this by ignoring all empty URBs.

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