linux/drivers/media/video/uvc
Jayakrishnan Memana 8a3f0ede2b [media] uvcvideo: Reset the bytesused field when recycling an erroneous buffer
Buffers marked as erroneous are recycled immediately by the driver if
the nodrop module parameter isn't set. The buffer payload size is reset
to 0, but the buffer bytesused field isn't. This results in the buffer
being immediately considered as complete, leading to an infinite loop in
interrupt context.

Fix the problem by resetting the bytesused field when recycling the
buffer.

Cc: <stable@vger.kernel.org>
Signed-off-by: Jayakrishnan Memana <jayakrishnan.memana@maxim-ic.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-08-11 12:58:16 -03:00
..
Kconfig [media] uvc/Kconfig: Fix INPUT/EVDEV dependencies 2012-07-06 10:52:43 -03:00
Makefile [media] uvcvideo: Add debugfs support 2011-12-11 11:22:07 -02:00
uvc_ctrl.c video/uvc: use memweight() 2012-07-30 17:25:16 -07:00
uvc_debugfs.c [media] uvcvideo: Extract video stream statistics 2011-12-11 11:22:08 -02:00
uvc_driver.c [media] uvcvideo: uvc_driver.c: use linux/atomic.h 2012-03-19 14:08:34 -03:00
uvc_entity.c [media] uvcvideo: Fix crash when linking entities 2011-09-21 22:18:07 -03:00
uvc_isight.c [media] uvcvideo: Move fields from uvc_buffer::buf to uvc_buffer 2011-12-11 11:12:05 -02:00
uvc_queue.c [media] uvcvideo: Reset the bytesused field when recycling an erroneous buffer 2012-08-11 12:58:16 -03:00
uvc_status.c [media] uvcvideo: Update e-mail address and copyright notices 2010-10-21 01:18:18 -02:00
uvc_v4l2.c [media] v4l2-ioctl: remove v4l_(i2c_)print_ioctl 2012-07-06 17:26:46 -03:00
uvc_video.c [media] uvcvideo: Fix alternate setting selection 2012-07-06 15:26:47 -03:00
uvcvideo.h [media] uvcvideo: Drop unused ctrl member from struct uvc_control_mapping 2012-05-07 16:41:57 -03:00