Commit:     2b28a4721e068ac89bd5435472723a1bc44442fe
Parent:     ff83efacf2b77a1fe8942db6613825a4b80ee5e2
Author:     FUJITA Tomonori <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 19 17:02:27 2008 +0900
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Tue Feb 19 10:49:27 2008 -0600

    [SCSI] ips: fix data buffer accessors conversion bug
    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]>
    Cc: Stable Tree <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 drivers/scsi/ips.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index bb152fb..7ed568f 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -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 */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to