V4L/DVB (9691): gspca: Move the video device to a separate area.

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e07a1d8ab20a059fefbfd1558db43701bca560d7
Commit:     e07a1d8ab20a059fefbfd1558db43701bca560d7
Parent:     5c4fa002b1c7b40f65fa911ae17a823ec9e26ab2
Author:     Jean-Francois Moine <moinejf <at> free.fr>
AuthorDate: Wed Nov 19 06:37:53 2008 -0300
Committer:  Mauro Carvalho Chehab <mchehab <at> redhat.com>
CommitDate: Mon Nov 24 12:01:38 2008 -0200

    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 <at> free.fr>
    Signed-off-by: Mauro Carvalho Chehab <mchehab <at> redhat.com>
---
 drivers/media/video/gspca/gspca.c |   28 +++++++++++++---------------
 drivers/media/video/gspca/gspca.h |    2 +-
 2 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index a565f37..748a87e 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -862,7 +862,7 @@ static int dev_open(struct inode *inode, struct file *file)
 	int ret;

 	PDEBUG(D_STREAM, "%s open", current->comm);
(Continue reading)


Gmane