aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/libata-scsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index fedf62de9460..c16e3cea1d28 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -2394,7 +2394,8 @@ static void atapi_request_sense(struct ata_queued_cmd *qc)
2394 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); 2394 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
2395 2395
2396#ifdef CONFIG_ATA_SFF 2396#ifdef CONFIG_ATA_SFF
2397 ap->ops->sff_tf_read(ap, &qc->tf); 2397 if (ap->ops->sff_tf_read)
2398 ap->ops->sff_tf_read(ap, &qc->tf);
2398#endif 2399#endif
2399 2400
2400 /* fill these in, for the case where they are -not- overwritten */ 2401 /* fill these in, for the case where they are -not- overwritten */