summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorXianting Tian <tian.xianting@h3c.com>2020-08-29 15:57:46 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-09-02 22:49:07 -0400
commite5f48ac42cc99e339fcb5392b698b4093001b859 (patch)
tree9afb05136f603ea68d458287657103f5a336d75f /drivers
parenta08a07326510eca91c414f4cddfcecbbeda50fe0 (diff)
downloadlinux-e5f48ac42cc99e339fcb5392b698b4093001b859.tar.bz2
scsi: qla2xxx: Fix the return value
A negative error code should be returned. Link: https://lore.kernel.org/r/20200829075746.19166-1-tian.xianting@h3c.com Acked-by: Nilesh Javali <njavali@marvell.com> Signed-off-by: Xianting Tian <tian.xianting@h3c.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/qla2xxx/qla_target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index f2bb841c2059..4c869b5561ac 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -3781,7 +3781,7 @@ int qlt_abort_cmd(struct qla_tgt_cmd *cmd)
"multiple abort. %p transport_state %x, t_state %x, "
"se_cmd_flags %x\n", cmd, cmd->se_cmd.transport_state,
cmd->se_cmd.t_state, cmd->se_cmd.se_cmd_flags);
- return EIO;
+ return -EIO;
}
cmd->aborted = 1;
cmd->trc_flags |= TRC_ABORT;