-
Tejun Heo authored
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>
2a5f07b5