linux/drivers/media/video/gspca
Hans de Goede 27074efa2e [media] gspca_main: Locking fixes 2
Before this patch vidioc_dqbuf is using its own read_lock, where as
other queue related functions use queue_lock. This means that dqbuf is
accessing several variables in a racy manor. The most important one
being fr_o, which may be changed from underneath dqbuf by vidioc_reqbufs
or vidioc_streamoff. Other variables which it accesses unprotected
are gspca_dev->memory, gspca_dev->streaming and gspca_dev->capt_file.

This patch fixes this by changing vidioc_dqbuf to also use the queue_lock.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-01-19 11:44:54 -02:00
..
gl860 [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
m5602 [media] gspca: Convert some uppercase hexadecimal values to lowercase 2010-12-29 08:16:33 -02:00
stv06xx [media] gspca - stv06xx/st6422: Use the new video control mechanism 2010-12-29 08:17:21 -02:00
benq.c [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
coarse_expo_autogain.h
conex.c [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
cpia1.c [media] gspca - cpia1: Fix error check 2010-12-29 08:16:41 -02:00
etoms.c [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
finepix.c
gspca.c [media] gspca_main: Locking fixes 2 2011-01-19 11:44:54 -02:00
gspca.h [media] gspca_main: Locking fixes 2 2011-01-19 11:44:54 -02:00
jeilinj.c
jpeg.h
Kconfig
konica.c [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
Makefile
mars.c
mr97310a.c
ov519.c [media] gspca - ov519: Bad detection of some ov7670 sensors 2010-12-29 08:17:06 -02:00
ov534_9.c [media] gspca - ov534_9: Remove an useless instruction 2010-12-29 08:17:06 -02:00
ov534.c [media] gspca: Use the global error status for get/set streamparm 2010-12-29 08:17:06 -02:00
pac207.c [media] gspca: Convert some uppercase hexadecimal values to lowercase 2010-12-29 08:16:33 -02:00
pac7302.c [media] gspca - pac7302/pac7311: Fix some warnings 2010-12-29 08:17:19 -02:00
pac7311.c [media] gspca - pac7302/pac7311: Fix some warnings 2010-12-29 08:17:19 -02:00
pac_common.h
sn9c20x.c [media] gspca/sn9c20x: Fix support for mt9m001 (mi1300) sensor 2010-12-29 08:17:00 -02:00
sn9c2028.c
sn9c2028.h
sonixb.c [media] gspca_sonixb: Add support for 0c45:602a 2010-12-29 08:17:01 -02:00
sonixj.c [media] gspca - sonixj: Bad clock for om6802 in 640x480 2010-12-29 08:17:21 -02:00
spca500.c
spca501.c [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
spca505.c
spca506.c
spca508.c [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
spca561.c [media] gspca: Convert some uppercase hexadecimal values to lowercase 2010-12-29 08:16:33 -02:00
spca1528.c
sq905.c
sq905c.c [media] gspca - sq905c: Adds the Lego Bionicle 2010-12-29 08:17:05 -02:00
sq930x.c [media] gspca - sq930x: Fix a bad comment 2010-12-29 08:17:05 -02:00
stk014.c
stv0680.c
sunplus.c [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
t613.c [media] gspca: Convert some uppercase hexadecimal values to lowercase 2010-12-29 08:16:33 -02:00
tv8532.c [media] gspca: Convert some uppercase hexadecimal values to lowercase 2010-12-29 08:16:33 -02:00
vc032x.c [media] gspca - vc032x: Cleanup source 2010-12-29 08:17:20 -02:00
w996Xcf.c [media] gspca - ov519: Propagate errors to higher level 2010-12-29 08:16:42 -02:00
xirlink_cit.c [media] gspca_xirlink_cit: Add support camera button 2010-12-29 08:16:31 -02:00
zc3xx-reg.h
zc3xx.c [media] gspca - zc3xx: The sensor of the VF0250 is a GC0303 2010-12-29 08:17:20 -02:00