Patch "scsi: qla2xxx: Fix wrong return value in qlt_chk_unresolv_exchg()" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: qla2xxx: Fix wrong return value in qlt_chk_unresolv_exchg()

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-qla2xxx-fix-wrong-return-value-in-qlt_chk_unres.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit bdba2430a681a8780535229adbd9fb815e4f352c
Author: Tianjia Zhang <tianjia.zhang@xxxxxxxxxxxxxxxxx>
Date:   Sun Aug 2 19:15:28 2020 +0800

    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@xxxxxxxxxxxxxxxxx
    Fixes: 0691094ff3f2 ("scsi: qla2xxx: Add logic to detect ABTS hang and response completion")
    Cc: Quinn Tran <quinn.tran@xxxxxxxxxx>
    Signed-off-by: Tianjia Zhang <tianjia.zhang@xxxxxxxxxxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
index 2d445bdb21290..2a88e7e79bd50 100644
--- a/drivers/scsi/qla2xxx/qla_target.c
+++ b/drivers/scsi/qla2xxx/qla_target.c
@@ -5668,7 +5668,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");



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux