V4L/DVB (10385): gspca - main: Fix memory leak when USB disconnection while streaming.
authorJean-Francois Moine <moinejf@free.fr>
Sat, 24 Jan 2009 10:45:14 +0000 (07:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 29 Jan 2009 11:06:41 +0000 (09:06 -0200)
Resetting the streaming flag on disconnection prevented the URBs to be freed
when streaming was active.
Also, USBs cannot be killed after disconnection (oops in [usbcore] unlink1).

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c

Simple merge