Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119007
b: refs/heads/master
c: df81d23
h: refs/heads/master
i:
  119005: 5950048
  119003: 0b1a2cb
  118999: a5b8f16
  118991: 9a435e2
  118975: 9559b61
v: v3
  • Loading branch information
Miquel van Smoorenburg authored and James Bottomley committed Nov 15, 2008
1 parent 3947ade commit 831adf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 939c2288c35132fe340b2694c7d02cacf7593723
refs/heads/master: df81d2371aeca0f7474f197a3090830899016e39
4 changes: 2 additions & 2 deletions trunk/drivers/scsi/dpt_i2o.c
Original file line number Diff line number Diff line change
Expand Up @@ -2445,7 +2445,7 @@ static s32 adpt_i2o_to_scsi(void __iomem *reply, struct scsi_cmnd* cmd)
hba_status = detailed_status >> 8;

// calculate resid for sg
scsi_set_resid(cmd, scsi_bufflen(cmd) - readl(reply+5));
scsi_set_resid(cmd, scsi_bufflen(cmd) - readl(reply+20));

pHba = (adpt_hba*) cmd->device->host->hostdata[0];

Expand All @@ -2456,7 +2456,7 @@ static s32 adpt_i2o_to_scsi(void __iomem *reply, struct scsi_cmnd* cmd)
case I2O_SCSI_DSC_SUCCESS:
cmd->result = (DID_OK << 16);
// handle underflow
if(readl(reply+5) < cmd->underflow ) {
if (readl(reply+20) < cmd->underflow) {
cmd->result = (DID_ERROR <<16);
printk(KERN_WARNING"%s: SCSI CMD underflow\n",pHba->name);
}
Expand Down

0 comments on commit 831adf1

Please sign in to comment.