aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2007-03-29 13:43:43 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-04-01 12:18:56 -0400
commit0feeed823af05ca556087a89fdcf644f156f73b8 (patch)
tree533d68ea12c8f3e37f5612aea7365d70b2ce43da /drivers/scsi
parente435340c4b583b4472dad1178029b8e3e7dafd0b (diff)
[SCSI] ipr: Return better qc_issue errors
If qc_issue fails for some reason, return a better error to libata. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ipr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index 0251fd7272e0..aa1fb72ca235 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -5128,7 +5128,7 @@ static unsigned int ipr_qc_issue(struct ata_queued_cmd *qc)
5128 struct ipr_ioarcb_ata_regs *regs; 5128 struct ipr_ioarcb_ata_regs *regs;
5129 5129
5130 if (unlikely(!ioa_cfg->allow_cmds || ioa_cfg->ioa_is_dead)) 5130 if (unlikely(!ioa_cfg->allow_cmds || ioa_cfg->ioa_is_dead))
5131 return -EIO; 5131 return AC_ERR_SYSTEM;
5132 5132
5133 ipr_cmd = ipr_get_free_ipr_cmnd(ioa_cfg); 5133 ipr_cmd = ipr_get_free_ipr_cmnd(ioa_cfg);
5134 ioarcb = &ipr_cmd->ioarcb; 5134 ioarcb = &ipr_cmd->ioarcb;
@@ -5173,7 +5173,7 @@ static unsigned int ipr_qc_issue(struct ata_queued_cmd *qc)
5173 5173
5174 default: 5174 default:
5175 WARN_ON(1); 5175 WARN_ON(1);
5176 return -1; 5176 return AC_ERR_INVALID;
5177 } 5177 }
5178 5178
5179 mb(); 5179 mb();