If qc_issue fails for some reason, return a better error to libata. Signed-off-by: Brian King <brking@xxxxxxxxxxxxxxxxxx> --- linux-2.6-bjking1/drivers/scsi/ipr.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/scsi/ipr.c~ipr_sata_qc_issue_error drivers/scsi/ipr.c --- linux-2.6/drivers/scsi/ipr.c~ipr_sata_qc_issue_error 2007-03-29 09:20:29.000000000 -0500 +++ linux-2.6-bjking1/drivers/scsi/ipr.c 2007-03-29 09:20:29.000000000 -0500 @@ -5128,7 +5128,7 @@ static unsigned int ipr_qc_issue(struct 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 default: WARN_ON(1); - return -1; + return AC_ERR_INVALID; } mb(); _ - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html