linux/drivers/media/video/gspca/m5602
Jean-François Moine f7059eaa28 V4L/DVB: gspca - main: Don't use the frame buffer flags
This patch fixes possible race conditions in queue management with SMP:
when a frame was completed, the irq function tried to use the next frame
buffer. At this time, it was possible that the application on an other
processor updated the frame pointer, making the image to point to a bad
buffer.
The patch contains two main changes:
- the image transfer uses the queue indexes which are protected against
  simultaneous memory access,
- the image pointer which is used for image concatenation is only set at
  interrupt level.
Some subdrivers which used the image pointer have been updated.

Reported-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-08-02 16:42:48 -03:00
..
Kconfig V4L/DVB (9096): gspca: Subdriver selection at config time. 2008-10-12 09:37:13 -02:00
m5602_bridge.h V4L/DVB: gspca: Remove/move useless inclusions of slab.h 2010-08-02 14:49:20 -03:00
m5602_core.c V4L/DVB: gspca - main: Don't use the frame buffer flags 2010-08-02 16:42:48 -03:00
m5602_mt9m111.c V4L/DVB (13952): gspca: Storage class should be before const qualifier 2010-02-26 15:10:33 -03:00
m5602_mt9m111.h V4L/DVB (11654): gspca - m5602: Storage class should be before const qualifier 2009-06-16 18:20:49 -03:00
m5602_ov7660.c V4L/DVB (13952): gspca: Storage class should be before const qualifier 2010-02-26 15:10:33 -03:00
m5602_ov7660.h V4L/DVB (13952): gspca: Storage class should be before const qualifier 2010-02-26 15:10:33 -03:00
m5602_ov9650.c V4L/DVB (13883): gspca - m5602: Be less verbose during sensor probe 2010-02-26 15:10:28 -03:00
m5602_ov9650.h V4L/DVB (11654): gspca - m5602: Storage class should be before const qualifier 2009-06-16 18:20:49 -03:00
m5602_po1030.c V4L/DVB (13883): gspca - m5602: Be less verbose during sensor probe 2010-02-26 15:10:28 -03:00
m5602_po1030.h V4L/DVB (11535): gspca - m5602-po1030: Add experimental QVGA support 2009-06-16 18:20:34 -03:00
m5602_s5k4aa.c V4L/DVB (13883): gspca - m5602: Be less verbose during sensor probe 2010-02-26 15:10:28 -03:00
m5602_s5k4aa.h V4L/DVB (11688): gspca - m5602-s5k4aa: Fixup SXGA resolution. 2009-06-16 18:20:52 -03:00
m5602_s5k83a.c V4L/DVB: gspca: Remove/move useless inclusions of slab.h 2010-08-02 14:49:20 -03:00
m5602_s5k83a.h V4L/DVB (11633): gspca - m5602-s5k83a: Move hsync/vsync setup to start function 2009-06-16 18:20:46 -03:00
m5602_sensor.h V4L/DVB (11636): gspca - m5602-ov7660: Design probe function 2009-06-16 18:20:47 -03:00
Makefile V4L/DVB (11654a): Add a missing end of line at the end of gspca/m5602/Makefile 2009-06-16 18:20:49 -03:00