Skip to content

Commit

Permalink
[SCSI] initio: bugfix for accessors patch
Browse files Browse the repository at this point in the history
patch: [SCSI] initio: convert to use the data buffer accessors had a
small but fatal bug in that it didn't increment the pointer into the
initio scatterlist descriptors as it looped over the block generated
ones. Fixed here.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Boaz Harrosh authored and James Bottomley committed Dec 18, 2007
1 parent cd81621 commit a169e63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/initio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2616,6 +2616,7 @@ static void initio_build_scb(struct initio_host * host, struct scsi_ctrl_blk * c
scsi_for_each_sg(cmnd, sglist, cblk->sglen, i) {
sg->data = cpu_to_le32((u32)sg_dma_address(sglist));
total_len += sg->len = cpu_to_le32((u32)sg_dma_len(sglist));
++sg;
}

cblk->buflen = (scsi_bufflen(cmnd) > total_len) ?
Expand Down

0 comments on commit a169e63

Please sign in to comment.