summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2007-03-29 19:43:43 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-04-01 18:18:56 +0200
commit0feeed823af05ca556087a89fdcf644f156f73b8 (patch)
tree533d68ea12c8f3e37f5612aea7365d70b2ce43da
parent[SCSI] ipr: Disrupt device error (diff)
downloadlinux-0feeed823af05ca556087a89fdcf644f156f73b8.tar.xz
linux-0feeed823af05ca556087a89fdcf644f156f73b8.zip
[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>
-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)
struct ipr_ioarcb_ata_regs *regs;
if (unlikely(!ioa_cfg->allow_cmds || ioa_cfg->ioa_is_dead))
- return -EIO;
+ return AC_ERR_SYSTEM;
ipr_cmd = ipr_get_free_ipr_cmnd(ioa_cfg);
ioarcb = &ipr_cmd->ioarcb;
@@ -5173,7 +5173,7 @@ static unsigned int ipr_qc_issue(struct ata_queued_cmd *qc)
default:
WARN_ON(1);
- return -1;
+ return AC_ERR_INVALID;
}
mb();