diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-11-19 10:37:53 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-24 15:01:38 +0100 |
commit | e07a1d8ab20a059fefbfd1558db43701bca560d7 (patch) | |
tree | 834a4dc09da2e86ecbab2ce7ae4a5e2b298ebfd6 /drivers/media/video/gspca/gspca.h | |
parent | V4L/DVB (9690): gspca: Lock the subdrivers via module_get/put. (diff) | |
download | linux-e07a1d8ab20a059fefbfd1558db43701bca560d7.tar.xz linux-e07a1d8ab20a059fefbfd1558db43701bca560d7.zip |
V4L/DVB (9691): gspca: Move the video device to a separate area.
The video device was part of the gspca device. On device disconnection
while streaming, the device structure is freed at close time.
In this case, the remaining close job on the video device run out of
allocated memory.
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index 2ae1ad7c1483..d25e8d69373b 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h @@ -120,7 +120,7 @@ struct gspca_frame { }; struct gspca_dev { - struct video_device vdev; /* !! must be the first item */ + struct video_device *vdev; struct module *module; /* subdriver handling the device */ struct usb_device *dev; struct kref kref; |