From: Jean-François Moine Date: Tue, 6 Jul 2010 07:32:27 +0000 (-0300) Subject: V4L/DVB: gspca - main: Don't use the frame buffer flags X-Git-Tag: v2.6.36-rc1~582^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7059eaa285c0460569ffd26c43ae07e3f03cd6c;p=pandora-kernel.git 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 Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed