[SCSI] qla1280: set residual correctly

Jeremy caught a bug in the qla1280 driver where it didn't set the
residual value correctly.

Signed-off-by: Jeremy Higdon <jeremy@sgi.com>
Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

authored by Jes Sorensen and committed by James Bottomley 3ef49a3b d0a6b08a

+4 -2
+4 -2
drivers/scsi/qla1280.c
··· 1341 1341 int host_status = DID_ERROR; 1342 1342 uint16_t comp_status = le16_to_cpu(sts->comp_status); 1343 1343 uint16_t state_flags = le16_to_cpu(sts->state_flags); 1344 - uint16_t residual_length = le32_to_cpu(sts->residual_length); 1344 + uint32_t residual_length = le32_to_cpu(sts->residual_length); 1345 1345 uint16_t scsi_status = le16_to_cpu(sts->scsi_status); 1346 1346 #if DEBUG_QLA1280_INTR 1347 1347 static char *reason[] = { ··· 1413 1413 "scsi: Underflow detected - retrying " 1414 1414 "command.\n"); 1415 1415 host_status = DID_ERROR; 1416 - } else 1416 + } else { 1417 + cp->resid = residual_length; 1417 1418 host_status = DID_OK; 1419 + } 1418 1420 break; 1419 1421 1420 1422 default: