aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/be2iscsi/be_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 9fc4446b21e0..d611a13dabf0 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -1711,7 +1711,8 @@ hwi_write_sgl(struct iscsi_wrb *pwrb, struct scatterlist *sg,
1711 io_task->bhs_pa.u.a32.address_hi); 1711 io_task->bhs_pa.u.a32.address_hi);
1712 1712
1713 l_sg = sg; 1713 l_sg = sg;
1714 for (index = 0; (index < num_sg) && (index < 2); index++, sg_next(sg)) { 1714 for (index = 0; (index < num_sg) && (index < 2); index++,
1715 sg = sg_next(sg)) {
1715 if (index == 0) { 1716 if (index == 0) {
1716 sg_len = sg_dma_len(sg); 1717 sg_len = sg_dma_len(sg);
1717 addr = (u64) sg_dma_address(sg); 1718 addr = (u64) sg_dma_address(sg);
@@ -1755,7 +1756,7 @@ hwi_write_sgl(struct iscsi_wrb *pwrb, struct scatterlist *sg,
1755 psgl++; 1756 psgl++;
1756 psgl++; 1757 psgl++;
1757 offset = 0; 1758 offset = 0;
1758 for (index = 0; index < num_sg; index++, sg_next(sg), psgl++) { 1759 for (index = 0; index < num_sg; index++, sg = sg_next(sg), psgl++) {
1759 sg_len = sg_dma_len(sg); 1760 sg_len = sg_dma_len(sg);
1760 addr = (u64) sg_dma_address(sg); 1761 addr = (u64) sg_dma_address(sg);
1761 AMAP_SET_BITS(struct amap_iscsi_sge, addr_lo, psgl, 1762 AMAP_SET_BITS(struct amap_iscsi_sge, addr_lo, psgl,