diff options
author | Tejun Heo <tj@kernel.org> | 2010-11-01 11:39:19 +0100 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2010-12-14 23:40:12 +0100 |
commit | bcb8e33f1cccdeeffb9cccb729f31c11259fdae0 (patch) | |
tree | 0cd5ded06986ad6fa36bfcc0a2e6d03616bf8ff2 /drivers/usb/wusbcore | |
parent | 852997dd63d9da05f9376c12c50a17da75f98c94 (diff) |
libata: fix NULL sdev dereference race in atapi_qc_complete()
commit 2a5f07b5ec098edc69e05fdd2f35d3fbb1235723 upstream.
SCSI commands may be issued between __scsi_add_device() and dev->sdev
assignment, so it's unsafe for ata_qc_complete() to dereference
dev->sdev->locked without checking whether it's NULL or not. Fix it.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/usb/wusbcore')
0 files changed, 0 insertions, 0 deletions