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)
commit2fd9c2eac31d8b3c1b719c7dfbbfed17c5cbccc4
treeca5d32900ad8498a19b6e49b5bfa2e58f05e0da7
parent9c06210b89e604aa75314d3d173a93292b0d2777
V4L/DVB (10385): gspca - main: Fix memory leak when USB disconnection while streaming.

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