From: Adam Baker Date: Wed, 4 Feb 2009 18:33:21 +0000 (-0300) Subject: V4L/DVB (10619): gspca - main: Destroy the URBs at disconnection time. X-Git-Tag: v2.6.29-rc6~83^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad28127d7c7c617bca1d426f95b6ffa1fb8f700f;p=pandora-kernel.git V4L/DVB (10619): gspca - main: Destroy the URBs at disconnection time. If a device using the gspca framework is unplugged while it is still streaming then the call that is used to free the URBs that have been allocated occurs after the pointer it uses becomes invalid at the end of gspca_disconnect. Make another cleanup call in gspca_disconnect while the pointer is still valid (multiple calls are OK as destroy_urbs checks for pointers already being NULL. Signed-off-by: Adam Baker Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed