From 5d0d7c23a3aa5c1eeb56b96273088b53a81e0267 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Fri, 5 Jan 2007 12:05:37 -0500 Subject: [PATCH] --- yaml --- r: 45579 b: refs/heads/master c: 3ef49a3b45c33b055002402f01e5da98cb773086 h: refs/heads/master i: 45577: 1dee31f98beff43e6c835b2c571f2764caf56a42 45575: 05f65bfdfa122c40b30245ca92cffa7514eba6e5 v: v3 --- [refs] | 2 +- trunk/drivers/scsi/qla1280.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 24f42ebca655..18b40f6f9792 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d0a6b08ae08c2ab292f756bdae0e8b1242696d7f +refs/heads/master: 3ef49a3b45c33b055002402f01e5da98cb773086 diff --git a/trunk/drivers/scsi/qla1280.c b/trunk/drivers/scsi/qla1280.c index 16af5b79e587..1548d42a3b43 100644 --- a/trunk/drivers/scsi/qla1280.c +++ b/trunk/drivers/scsi/qla1280.c @@ -1341,7 +1341,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 +1413,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: