summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2007-02-08 15:42:53 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2007-02-17 00:32:19 +0100
commit5b06470816fb5e658e81db2a55b530ff2ba711c9 (patch)
treef43ea87c2808916a5f9f27238d82fd4481383cf2 /drivers/scsi/sd.c
parentUSB: asix - Fix endian issues in asix_tx_fixup() (diff)
downloadlinux-5b06470816fb5e658e81db2a55b530ff2ba711c9.tar.xz
linux-5b06470816fb5e658e81db2a55b530ff2ba711c9.zip
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>
Diffstat (limited to 'drivers/scsi/sd.c')
0 files changed, 0 insertions, 0 deletions