projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e435340
)
[SCSI] ipr: Return better qc_issue errors
author
Brian King
<brking@linux.vnet.ibm.com>
Thu, 29 Mar 2007 17:43:43 +0000
(12:43 -0500)
committer
James Bottomley
<jejb@mulgrave.il.steeleye.com>
Sun, 1 Apr 2007 16:18:56 +0000
(11:18 -0500)
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>
drivers/scsi/ipr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/ipr.c
b/drivers/scsi/ipr.c
index 0251fd7272e00e18d9973b9dfe1bad885d34b289..aa1fb72ca23536fef17279351269728b3ba8cb42 100644
(file)
--- 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();