]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (9690): gspca: Lock the subdrivers via module_get/put.
authorJean-Francois Moine <moinejf@free.fr>
Tue, 18 Nov 2008 18:52:31 +0000 (15:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 24 Nov 2008 14:01:23 +0000 (12:01 -0200)
commit5c4fa002b1c7b40f65fa911ae17a823ec9e26ab2
treede334f5d2dcdb93fff14584957ed820f9fe57208
parent98522a7be97f2b23451342e36c39f412f0461e24
V4L/DVB (9690): gspca: Lock the subdrivers via module_get/put.

The previous subdriver protection against rmmod was done via the
file operations table in the device descriptor. On device disconnection
while streaming, the device structure was freed at close time, and the
module_put still used the module name in the freed area.
Now, explicit module get/put are done on open and close.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c
drivers/media/video/gspca/gspca.h