]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ata/libata-scsi.c
libata: fix boot panic with SATAPI devices on non-SFF HBAs
[linux-2.6-omap-h63xx.git] / drivers / ata / libata-scsi.c
index fedf62de94600d75fe8a683f647f3b9fd5fb1c07..c16e3cea1d28b2e941773f95bfc8368e86b774de 100644 (file)
@@ -2394,7 +2394,8 @@ static void atapi_request_sense(struct ata_queued_cmd *qc)
        memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
 
 #ifdef CONFIG_ATA_SFF
-       ap->ops->sff_tf_read(ap, &qc->tf);
+       if (ap->ops->sff_tf_read)
+               ap->ops->sff_tf_read(ap, &qc->tf);
 #endif
 
        /* fill these in, for the case where they are -not- overwritten */