summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/gspca.h
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-09-28 13:12:22 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-09-28 13:12:22 +0200
commit2de9197854f8c42c4fd586ef569716840acf369b (patch)
treec8d664093c32b4d50afafcbc58d80730ce901b18 /linux/drivers/media/video/gspca/gspca.h
parent3cc22850f84b04ad4d59e5f4a0711ad3d43a4204 (diff)
downloadmediapointer-dvb-s2-2de9197854f8c42c4fd586ef569716840acf369b.tar.gz
mediapointer-dvb-s2-2de9197854f8c42c4fd586ef569716840acf369b.tar.bz2
gspca: Use a kref to avoid potentialy blocking forever in disconnect.
From: Frank Zago <frank@zago.net> Priority: normal Signed-off-by: Frank Zago <frank@zago.net> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/gspca.h')
-rw-r--r--linux/drivers/media/video/gspca/gspca.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.h b/linux/drivers/media/video/gspca/gspca.h
index b0bdae194..192dffdcd 100644
--- a/linux/drivers/media/video/gspca/gspca.h
+++ b/linux/drivers/media/video/gspca/gspca.h
@@ -121,6 +121,7 @@ struct gspca_dev {
struct video_device vdev; /* !! must be the first item */
struct file_operations fops;
struct usb_device *dev;
+ struct kref kref;
struct file *capt_file; /* file doing video capture */
struct cam cam; /* device information */