From: Hans de Goede Date: Mon, 7 May 2012 09:25:30 +0000 (-0300) Subject: [media] gspca: Call sd_stop0 on disconnect X-Git-Tag: v3.5-rc1~104^2~259 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb238732a52b100bdf4a766a50e11e6fd9bd1d83;p=pandora-kernel.git [media] gspca: Call sd_stop0 on disconnect This is necessary to ensure that worker-threads accessing the device are stopped before our disconnect handler returns. This causes a problem with stream_off calling sd_stop0 a second time when the device handle is closed. This is fixed by setting gscpa_dev->streaming to 0 on disconnect. Note that now stream_off will never be called on a disconnected device, and the present check can thus be removed from stream_off. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed