]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
[SCSI] initio: bugfix for accessors patch
authorBoaz Harrosh <bharrosh@panasas.com>
Mon, 17 Dec 2007 16:08:59 +0000 (18:08 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 18 Dec 2007 22:04:15 +0000 (16:04 -0600)
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>
drivers/scsi/initio.c

index 769a7a8058592360980f8fcb700af7aa871ea12f..01bf0189367dc8ef3bf30ff1668bf8eac31c1c7f 100644 (file)
@@ -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) ?