aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r--drivers/ata/libata-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 15a4c8a20358..989b7755af3d 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -2342,7 +2342,7 @@ static void atapi_request_sense(struct ata_queued_cmd *qc)
2342 ata_qc_reinit(qc); 2342 ata_qc_reinit(qc);
2343 2343
2344 /* setup sg table and init transfer direction */ 2344 /* setup sg table and init transfer direction */
2345 sg_init_one(&qc->sgent, cmd->sense_buffer, sizeof(cmd->sense_buffer)); 2345 sg_init_one(&qc->sgent, cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE);
2346 ata_sg_init(qc, &qc->sgent, 1); 2346 ata_sg_init(qc, &qc->sgent, 1);
2347 qc->dma_dir = DMA_FROM_DEVICE; 2347 qc->dma_dir = DMA_FROM_DEVICE;
2348 2348