From: Oliver Neukum Date: Thu, 8 Feb 2007 14:42:53 +0000 (+0100) Subject: USB: fix autosuspend race in skeleton driver X-Git-Tag: v2.6.21-rc1~82^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b06470816fb5e658e81db2a55b530ff2ba711c9;p=pandora-kernel.git USB: fix autosuspend race in skeleton driver as the skeleton driver was made ready for autosuspend a race condition was introduced. The reference to get device must be gotten before the autosuspend counter is upped, as this operation may sleep, dropping BKL. Dropping BKL means that the pointer to the device may become invalid. Here's the fix. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed