X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=drivers%2Fscsi%2Fqla1280.c;h=6777e8a69153a9a7c6eabc671ac4ea8a7ae2d642;hb=3cfff0fc74bf5ac8213b5a2be583bf675ccd9511;hp=16af5b79e5878ff23f8b920c6ad2bf6a125c2042;hpb=cd00b7f5d814ba87b36371f122ce36ba4a88ba69;p=safe%2Fjmp%2Flinux-2.6 diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 16af5b7..6777e8a 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c @@ -341,7 +341,6 @@ #include #include #include -#include #include #include #include @@ -1341,7 +1340,7 @@ qla1280_return_status(struct response * sts, struct scsi_cmnd *cp) int host_status = DID_ERROR; uint16_t comp_status = le16_to_cpu(sts->comp_status); uint16_t state_flags = le16_to_cpu(sts->state_flags); - uint16_t residual_length = le32_to_cpu(sts->residual_length); + uint32_t residual_length = le32_to_cpu(sts->residual_length); uint16_t scsi_status = le16_to_cpu(sts->scsi_status); #if DEBUG_QLA1280_INTR static char *reason[] = { @@ -1413,8 +1412,10 @@ qla1280_return_status(struct response * sts, struct scsi_cmnd *cp) "scsi: Underflow detected - retrying " "command.\n"); host_status = DID_ERROR; - } else + } else { + cp->resid = residual_length; host_status = DID_OK; + } break; default: