From: Alan Stern Date: Mon, 19 Jun 2006 18:50:15 +0000 (-0400) Subject: [PATCH] usb-storage: fix race between reset and disconnect X-Git-Tag: v2.6.18-rc2~97^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eecd11ed47c8c9bd8e7e3dff35baccae18dd0d84;p=pandora-kernel.git [PATCH] usb-storage: fix race between reset and disconnect My recent patch converting usb-storage to use usb_reset_composite_device() added a bug, a race between reset and disconnect. It was necessary to drop the private lock while executing a reset, and if a disconnect occurs at that time it will cause a crash. This patch (as722) fixes the problem by explicitly checking for an early termination after executing each command. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed