mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
scsi: qla2xxx: Fix wrong return value in qlt_chk_unresolv_exchg()
[ Upstream commit bbf2d06a9d767718bfe6028d6288c03edb98554a ]
In the case of a failed retry, a positive value EIO is returned here. I
think this is a typo error. It is necessary to return an error value.
[mkp: caller checks != 0 but the rest of the file uses -Exxx so fix this up
to be consistent]
Link: https://lore.kernel.org/r/20200802111528.4974-1-tianjia.zhang@linux.alibaba.com
Fixes: 0691094ff3 ("scsi: qla2xxx: Add logic to detect ABTS hang and response completion")
Cc: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
49fc81280f
commit
835e3a595a
1 changed files with 1 additions and 1 deletions
|
|
@ -5677,7 +5677,7 @@ static int qlt_chk_unresolv_exchg(struct scsi_qla_host *vha,
|
|||
/* found existing exchange */
|
||||
qpair->retry_term_cnt++;
|
||||
if (qpair->retry_term_cnt >= 5) {
|
||||
rc = EIO;
|
||||
rc = -EIO;
|
||||
qpair->retry_term_cnt = 0;
|
||||
ql_log(ql_log_warn, vha, 0xffff,
|
||||
"Unable to send ABTS Respond. Dumping firmware.\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue