summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_legacy.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-11-01 11:39:19 +0100
committerJeff Garzik <jgarzik@redhat.com>2010-11-12 23:10:51 +0100
commit2a5f07b5ec098edc69e05fdd2f35d3fbb1235723 (patch)
tree28180df99e2b236018c29dd05480b13024159868 /drivers/ata/pata_legacy.c
parentMerge master.kernel.org:/home/rmk/linux-2.6-arm (diff)
downloadlinux-2a5f07b5ec098edc69e05fdd2f35d3fbb1235723.tar.xz
linux-2a5f07b5ec098edc69e05fdd2f35d3fbb1235723.zip
libata: fix NULL sdev dereference race in atapi_qc_complete()
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> Cc: stable@kernel.org Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_legacy.c')
0 files changed, 0 insertions, 0 deletions