diff options
Diffstat (limited to 'drivers/scsi/tmscsim.c')
-rw-r--r-- | drivers/scsi/tmscsim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c index 44193049c4ae..5b04ddfed26c 100644 --- a/drivers/scsi/tmscsim.c +++ b/drivers/scsi/tmscsim.c | |||
@@ -444,7 +444,7 @@ static int dc390_pci_map (struct dc390_srb* pSRB) | |||
444 | 444 | ||
445 | /* Map sense buffer */ | 445 | /* Map sense buffer */ |
446 | if (pSRB->SRBFlag & AUTO_REQSENSE) { | 446 | if (pSRB->SRBFlag & AUTO_REQSENSE) { |
447 | pSRB->pSegmentList = dc390_sg_build_single(&pSRB->Segmentx, pcmd->sense_buffer, sizeof(pcmd->sense_buffer)); | 447 | pSRB->pSegmentList = dc390_sg_build_single(&pSRB->Segmentx, pcmd->sense_buffer, SCSI_SENSE_BUFFERSIZE); |
448 | pSRB->SGcount = pci_map_sg(pdev, pSRB->pSegmentList, 1, | 448 | pSRB->SGcount = pci_map_sg(pdev, pSRB->pSegmentList, 1, |
449 | DMA_FROM_DEVICE); | 449 | DMA_FROM_DEVICE); |
450 | cmdp->saved_dma_handle = sg_dma_address(pSRB->pSegmentList); | 450 | cmdp->saved_dma_handle = sg_dma_address(pSRB->pSegmentList); |
@@ -599,7 +599,7 @@ dc390_StartSCSI( struct dc390_acb* pACB, struct dc390_dcb* pDCB, struct dc390_sr | |||
599 | DC390_write8 (ScsiFifo, pDCB->TargetLUN << 5); | 599 | DC390_write8 (ScsiFifo, pDCB->TargetLUN << 5); |
600 | DC390_write8 (ScsiFifo, 0); | 600 | DC390_write8 (ScsiFifo, 0); |
601 | DC390_write8 (ScsiFifo, 0); | 601 | DC390_write8 (ScsiFifo, 0); |
602 | DC390_write8 (ScsiFifo, sizeof(scmd->sense_buffer)); | 602 | DC390_write8 (ScsiFifo, SCSI_SENSE_BUFFERSIZE); |
603 | DC390_write8 (ScsiFifo, 0); | 603 | DC390_write8 (ScsiFifo, 0); |
604 | DEBUG1(printk (KERN_DEBUG "DC390: AutoReqSense !\n")); | 604 | DEBUG1(printk (KERN_DEBUG "DC390: AutoReqSense !\n")); |
605 | } | 605 | } |
@@ -1389,7 +1389,7 @@ dc390_CommandPhase( struct dc390_acb* pACB, struct dc390_srb* pSRB, u8 *psstatus | |||
1389 | DC390_write8 (ScsiFifo, pDCB->TargetLUN << 5); | 1389 | DC390_write8 (ScsiFifo, pDCB->TargetLUN << 5); |
1390 | DC390_write8 (ScsiFifo, 0); | 1390 | DC390_write8 (ScsiFifo, 0); |
1391 | DC390_write8 (ScsiFifo, 0); | 1391 | DC390_write8 (ScsiFifo, 0); |
1392 | DC390_write8 (ScsiFifo, sizeof(pSRB->pcmd->sense_buffer)); | 1392 | DC390_write8 (ScsiFifo, SCSI_SENSE_BUFFERSIZE); |
1393 | DC390_write8 (ScsiFifo, 0); | 1393 | DC390_write8 (ScsiFifo, 0); |
1394 | DEBUG0(printk(KERN_DEBUG "DC390: AutoReqSense (CmndPhase)!\n")); | 1394 | DEBUG0(printk(KERN_DEBUG "DC390: AutoReqSense (CmndPhase)!\n")); |
1395 | } | 1395 | } |