commit f59549d67e4d2f236a87f7d9d2e48dfe84d70f6b
Author: FUJITA Tomonori <[EMAIL PROTECTED]>
Date:   Sat Feb 23 20:55:12 2008 +0000

    SCSI ips: fix data buffer accessors conversion bug
    
    commit: 2b28a4721e068ac89bd5435472723a1bc44442fe
    
    This fixes a bug that can't handle a passthru command with more than
    two sg entries.
    
    Big thanks to Tim Pepper for debugging the problem.
    
    Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]>
    Acked-by: Mark Salyzyn <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
    Signed-off-by: Chris Wright <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>

diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index f8aa290..f4e9c8d 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -1580,7 +1580,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 */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to