diff options
author | Xianting Tian <tian.xianting@h3c.com> | 2020-08-29 10:57:46 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-09-03 05:49:07 +0300 |
commit | e5f48ac42cc99e339fcb5392b698b4093001b859 (patch) | |
tree | 9afb05136f603ea68d458287657103f5a336d75f /drivers/scsi/qla2xxx/qla_target.c | |
parent | a08a07326510eca91c414f4cddfcecbbeda50fe0 (diff) | |
download | linux-e5f48ac42cc99e339fcb5392b698b4093001b859.tar.xz |
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/scsi/qla2xxx/qla_target.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_target.c | 2 |
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; |