aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.h
diff options
context:
space:
mode:
authorFrank Zago <frank@zago.net>2008-09-28 07:12:22 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:37:12 -0400
commit6b060ffea0722cfe4f5156a73a6424130d3d804a (patch)
treefa3351600d2fe6dd3ac955e2954c42d6675e78bf /drivers/media/video/gspca/gspca.h
parent6c49da7f169c25eb39b80ff168f5bdbacf8457e1 (diff)
V4L/DVB (9086): gspca: Use a kref to avoid potentialy blocking forever in disconnect.
Signed-off-by: Frank Zago <frank@zago.net> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.h')
-rw-r--r--drivers/media/video/gspca/gspca.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h
index b0bdae194bb6..192dffdcd9cd 100644
--- a/drivers/media/video/gspca/gspca.h
+++ b/drivers/media/video/gspca/gspca.h
@@ -121,6 +121,7 @@ struct gspca_dev {
121 struct video_device vdev; /* !! must be the first item */ 121 struct video_device vdev; /* !! must be the first item */
122 struct file_operations fops; 122 struct file_operations fops;
123 struct usb_device *dev; 123 struct usb_device *dev;
124 struct kref kref;
124 struct file *capt_file; /* file doing video capture */ 125 struct file *capt_file; /* file doing video capture */
125 126
126 struct cam cam; /* device information */ 127 struct cam cam; /* device information */