block: move dma_pad handling from blk_rq_map_sg into the callers
[linux-2.6-microblaze.git] / drivers / ata / libata-scsi.c
index feb13b8..435781a 100644 (file)
@@ -649,7 +649,7 @@ static void ata_qc_set_pc_nbytes(struct ata_queued_cmd *qc)
 {
        struct scsi_cmnd *scmd = qc->scsicmd;
 
-       qc->extrabytes = scmd->request->extra_len;
+       qc->extrabytes = scmd->extra_len;
        qc->nbytes = scsi_bufflen(scmd) + qc->extrabytes;
 }