commit | 5b06470816fb5e658e81db2a55b530ff2ba711c9 | [log] [tgz] |
---|---|---|
author | Oliver Neukum <oneukum@suse.de> | Thu Feb 08 15:42:53 2007 +0100 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri Feb 16 15:32:19 2007 -0800 |
tree | f43ea87c2808916a5f9f27238d82fd4481383cf2 | |
parent | 57e4f041bfffa191a318dab44eb991d79a6a9d5c [diff] |
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 <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>