From: David Brownell Date: Wed, 17 Jan 2007 06:56:26 +0000 (-0800) Subject: USB: gadgetfs race fix X-Git-Tag: v2.6.21-rc1~92^2~29^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b89db02a5a7c8bad3c6fb7888778082a441b385;p=pandora-kernel.git USB: gadgetfs race fix This resolves a race in gadgetfs associated with changing device/ep0 when processing control requests. The fix is to change that state earlier, when the control response is issued, so there's no window in which userspace could see the wrong state; and enlarge the scope of the spinlock during the ep0 request completion handler. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed