git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SCSI] sym53c8xx: fix resid calculation
[safe/jmp/linux-2.6]
/
drivers
/
scsi
/
sym53c8xx_2
/
sym_hipd.c
diff --git
a/drivers/scsi/sym53c8xx_2/sym_hipd.c
b/drivers/scsi/sym53c8xx_2/sym_hipd.c
index
254bdae
..
35142b5
100644
(file)
--- 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
;
}
/*