From: Alan Stern Date: Wed, 2 Feb 2011 18:59:33 +0000 (-0500) Subject: USB: fix race between root-hub resume and wakeup requests X-Git-Tag: v2.6.37.1~237 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9376557ec8907429e57c2607836d2078192a17ea;p=pandora-kernel.git USB: fix race between root-hub resume and wakeup requests commit bf3d7d40e42a85ca73a34e1385ff34f092a384eb upstream. The USB core keeps track of pending resume requests for root hubs, in order to resolve races between wakeup requests and suspends. However the code that does this is subject to another race (between wakeup requests and resumes) because the WAKEUP_PENDING flag is cleared before the resume occurs, leaving a window in which another wakeup request might arrive. This patch (as1447) fixes the problem by clearing the WAKEUP_PENDING flag after the resume instead of before it. This fixes Bugzilla #24952. Signed-off-by: Alan Stern Tested-by: Paul Bender Tested-by: warpme Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed