aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/aacraid/aachba.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
index 642a3b4e5937..5d2989754c9f 100644
--- a/drivers/scsi/aacraid/aachba.c
+++ b/drivers/scsi/aacraid/aachba.c
@@ -2218,15 +2218,15 @@ static unsigned long aac_build_sg(struct scsi_cmnd* scsicmd, struct sgmap* psg)
2218 } 2218 }
2219 } 2219 }
2220 else if(scsicmd->request_bufflen) { 2220 else if(scsicmd->request_bufflen) {
2221 dma_addr_t addr; 2221 u32 addr;
2222 addr = pci_map_single(dev->pdev, 2222 scsicmd->SCp.dma_handle = pci_map_single(dev->pdev,
2223 scsicmd->request_buffer, 2223 scsicmd->request_buffer,
2224 scsicmd->request_bufflen, 2224 scsicmd->request_bufflen,
2225 scsicmd->sc_data_direction); 2225 scsicmd->sc_data_direction);
2226 addr = scsicmd->SCp.dma_handle;
2226 psg->count = cpu_to_le32(1); 2227 psg->count = cpu_to_le32(1);
2227 psg->sg[0].addr = cpu_to_le32(addr); 2228 psg->sg[0].addr = cpu_to_le32(addr);
2228 psg->sg[0].count = cpu_to_le32(scsicmd->request_bufflen); 2229 psg->sg[0].count = cpu_to_le32(scsicmd->request_bufflen);
2229 scsicmd->SCp.dma_handle = addr;
2230 byte_count = scsicmd->request_bufflen; 2230 byte_count = scsicmd->request_bufflen;
2231 } 2231 }
2232 return byte_count; 2232 return byte_count;