summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiridhar Malavali <giridhar.malavali@qlogic.com>2010-12-21 16:00:27 -0800
committerJames Bottomley <James.Bottomley@suse.de>2010-12-23 16:09:47 -0600
commitaa5cbf8a70f57c5360ce1bfef692b357c866ae7f (patch)
treee9bc1f82c55464ff803e14438b2fbc9438ec3575
parent900a36e3277ac9109fe364a6a1420c71265f9377 (diff)
downloadtalos-obmc-linux-aa5cbf8a70f57c5360ce1bfef692b357c866ae7f.tar.gz
talos-obmc-linux-aa5cbf8a70f57c5360ce1bfef692b357c866ae7f.zip
[SCSI] qla2xxx: Use sg_next to fetch next sg element while walking sg list.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r--drivers/scsi/qla2xxx/qla_nx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c
index a971ec31a82e..fdb96a3584a5 100644
--- a/drivers/scsi/qla2xxx/qla_nx.c
+++ b/drivers/scsi/qla2xxx/qla_nx.c
@@ -2561,7 +2561,7 @@ qla2xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
*cur_dsd++ = cpu_to_le32(LSD(sle_dma));
*cur_dsd++ = cpu_to_le32(MSD(sle_dma));
*cur_dsd++ = cpu_to_le32(sg_dma_len(cur_seg));
- cur_seg++;
+ cur_seg = sg_next(cur_seg);
avail_dsds--;
}
}
OpenPOWER on IntegriCloud