]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] sym53c8xx: fix resid calculation
authorTony Battersby <tonyb@cybernetics.com>
Tue, 6 Nov 2007 21:07:04 +0000 (16:07 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 8 Feb 2008 00:02:34 +0000 (18:02 -0600)
commit312edffa8a035472d461599ccd8d6f1c1e6d493a
tree7ae253a2611085eb01d62439f881f798beaf31b1
parent60034d2814b5d168142dfbe1368fede596b2727c
[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 <tonyb@cybernetics.com>
Cc: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/sym53c8xx_2/sym_hipd.c