Skip to content

Commit 0ba0b01

Browse files
Quinn Tranmartinkpetersen
authored andcommitted
scsi: qla2xxx: Error code did not return to upper layer
TMF was returned with an error code. The error code was not preserved to be returned to upper layer. Instead, the error code from the Marker was returned. Preserve error code from TMF and return it to upper layer. Cc: stable@vger.kernel.org Fixes: da7c21b ("scsi: qla2xxx: Fix command flush during TMF") Signed-off-by: Quinn Tran <qutran@marvell.com> Signed-off-by: Nilesh Javali <njavali@marvell.com> Link: https://lore.kernel.org/r/20230821130045.34850-6-njavali@marvell.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent cd248a9 commit 0ba0b01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/scsi/qla2xxx/qla_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,6 +2223,8 @@ __qla2x00_async_tm_cmd(struct tmf_arg *arg)
22232223
rval = QLA_FUNCTION_FAILED;
22242224
}
22252225
}
2226+
if (tm_iocb->u.tmf.data)
2227+
rval = tm_iocb->u.tmf.data;
22262228

22272229
done_free_sp:
22282230
/* ref: INIT */

0 commit comments

Comments
 (0)