From: Alan Stern Date: Tue, 13 Mar 2007 15:10:52 +0000 (-0400) Subject: USB: fix race in HCD removal X-Git-Tag: v2.6.22-rc1~1117^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b42ae6d4355328dc4406b6f0188adcf8c566435;p=pandora-kernel.git USB: fix race in HCD removal This patch (as865) fixes a race in the HCD removal code discovered by Milan Plzik. Arrival of an interrupt after the root hub was unregistered could cause the root-hub status timer to start up, even after it was supposed to have been shut down. The problem is fixed by moving the del_timer_sync() call to after the HCD's stop() method, at which time IRQ generation should be disabled. Cc: Milan Plzik Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed