Commit:     3dfcb701e1ff7aa21d6623e46b6ec3f7d0d306e1
Parent:     51883b5e60796cce556370dbc368fd22c60c0e3e
Author:     Tony Battersby <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 6 16:07:04 2007 -0500
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 18:02:34 2008 -0600

    [SCSI] sym53c8xx: fix resid calculation
    This patch fixes the calculation of the data transfer residual for the
    case of a command that is supposed to transfer an odd number of bytes on
    a wide bus but transfers nothing instead.
    Signed-off-by: Tony Battersby <[EMAIL PROTECTED]>
    Cc: Matthew Wilcox <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 drivers/scsi/sym53c8xx_2/sym_hipd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c 
index 254bdae..35142b5 100644
--- a/drivers/scsi/sym53c8xx_2/sym_hipd.c
+++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c
@@ -3842,7 +3842,7 @@ int sym_compute_residual(struct sym_hcb *np, struct 
sym_ccb *cp)
        if (cp->startp == cp->phys.head.lastp ||
            sym_evaluate_dp(np, cp, scr_to_cpu(cp->phys.head.lastp),
                            &dp_ofs) < 0) {
-               return cp->data_len;
+               return cp->data_len - cp->odd_byte_adjustment;
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