diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-09-28 13:12:22 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-09-28 13:12:22 +0200 |
commit | 2de9197854f8c42c4fd586ef569716840acf369b (patch) | |
tree | c8d664093c32b4d50afafcbc58d80730ce901b18 /linux/drivers/media/video/gspca/gspca.h | |
parent | 3cc22850f84b04ad4d59e5f4a0711ad3d43a4204 (diff) | |
download | mediapointer-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.h | 1 |
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 */ |