]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/ips.c
libata: prefer hardreset
[linux-2.6-omap-h63xx.git] / drivers / scsi / ips.c
index bb152fb9fec7dc4b3260c2b4add978ba4af0e314..7ed568f180ae6aee24e11364dd7f35ed63b1b533 100644 (file)
@@ -1576,7 +1576,7 @@ ips_make_passthru(ips_ha_t *ha, struct scsi_cmnd *SC, ips_scb_t *scb, int intr)
        METHOD_TRACE("ips_make_passthru", 1);
 
         scsi_for_each_sg(SC, sg, scsi_sg_count(SC), i)
-                length += sg[i].length;
+               length += sg->length;
 
        if (length < sizeof (ips_passthru_t)) {
                /* wrong size */