summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.h
diff options
context:
space:
mode:
authorFrank Zago <frank@zago.net>2008-09-28 08:12:22 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 09:37:12 -0200
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 b0bdae194bb..192dffdcd9c 100644
--- a/drivers/media/video/gspca/gspca.h
+++ b/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 */