diff options
Diffstat (limited to 'drivers/scsi/qla1280.c')
-rw-r--r-- | drivers/scsi/qla1280.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 1f17dec7d6fc..5cc23f8f370a 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c | |||
@@ -2977,8 +2977,8 @@ qla1280_64bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) | |||
2977 | cpu_to_le32(pci_dma_hi32(dma_handle)), | 2977 | cpu_to_le32(pci_dma_hi32(dma_handle)), |
2978 | cpu_to_le32(pci_dma_lo32(dma_handle)), | 2978 | cpu_to_le32(pci_dma_lo32(dma_handle)), |
2979 | cpu_to_le32(sg_dma_len(s))); | 2979 | cpu_to_le32(sg_dma_len(s))); |
2980 | remseg--; | ||
2981 | } | 2980 | } |
2981 | remseg -= cnt; | ||
2982 | dprintk(5, "qla1280_64bit_start_scsi: " | 2982 | dprintk(5, "qla1280_64bit_start_scsi: " |
2983 | "continuation packet data - b %i, t " | 2983 | "continuation packet data - b %i, t " |
2984 | "%i, l %i \n", SCSI_BUS_32(cmd), | 2984 | "%i, l %i \n", SCSI_BUS_32(cmd), |
@@ -3250,6 +3250,8 @@ qla1280_32bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) | |||
3250 | 3250 | ||
3251 | /* Load continuation entry data segments. */ | 3251 | /* Load continuation entry data segments. */ |
3252 | for_each_sg(sg, s, remseg, cnt) { | 3252 | for_each_sg(sg, s, remseg, cnt) { |
3253 | if (cnt == 7) | ||
3254 | break; | ||
3253 | *dword_ptr++ = | 3255 | *dword_ptr++ = |
3254 | cpu_to_le32(pci_dma_lo32(sg_dma_address(s))); | 3256 | cpu_to_le32(pci_dma_lo32(sg_dma_address(s))); |
3255 | *dword_ptr++ = | 3257 | *dword_ptr++ = |
@@ -3260,6 +3262,7 @@ qla1280_32bit_start_scsi(struct scsi_qla_host *ha, struct srb * sp) | |||
3260 | cpu_to_le32(pci_dma_lo32(sg_dma_address(s))), | 3262 | cpu_to_le32(pci_dma_lo32(sg_dma_address(s))), |
3261 | cpu_to_le32(sg_dma_len(s))); | 3263 | cpu_to_le32(sg_dma_len(s))); |
3262 | } | 3264 | } |
3265 | remseg -= cnt; | ||
3263 | dprintk(5, "qla1280_32bit_start_scsi: " | 3266 | dprintk(5, "qla1280_32bit_start_scsi: " |
3264 | "continuation packet data - " | 3267 | "continuation packet data - " |
3265 | "scsi(%i:%i:%i)\n", SCSI_BUS_32(cmd), | 3268 | "scsi(%i:%i:%i)\n", SCSI_BUS_32(cmd), |