]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] qla2xxx: Use sg_next to fetch next sg element while walking sg list.
authorGiridhar Malavali <giridhar.malavali@qlogic.com>
Wed, 22 Dec 2010 00:00:27 +0000 (16:00 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 23 Dec 2010 22:09:47 +0000 (16:09 -0600)
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>
drivers/scsi/qla2xxx/qla_nx.c

index a971ec31a82ec0d0477ad1281905fae49c3485fd..fdb96a3584a5ca5981982a44de23704a83fd8a65 100644 (file)
@@ -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--;
                }
        }