Skip to content

Commit aa5cbf8

Browse files
Giridhar MalavaliJames Bottomley
authored andcommitted
[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>
1 parent 900a36e commit aa5cbf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/scsi/qla2xxx/qla_nx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@ qla2xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
25612561
*cur_dsd++ = cpu_to_le32(LSD(sle_dma));
25622562
*cur_dsd++ = cpu_to_le32(MSD(sle_dma));
25632563
*cur_dsd++ = cpu_to_le32(sg_dma_len(cur_seg));
2564-
cur_seg++;
2564+
cur_seg = sg_next(cur_seg);
25652565
avail_dsds--;
25662566
}
25672567
}

0 commit comments

Comments
 (0)