This is a note to let you know that I've just added the patch titled scsi: qla2xxx: Error code did not return to upper layer to the 5.15-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-error-code-did-not-return-to-upper-layer.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 0ba0b018f94525a6b32f5930f980ce9b62b72e6f Mon Sep 17 00:00:00 2001 From: Quinn Tran <qutran@xxxxxxxxxxx> Date: Mon, 21 Aug 2023 18:30:41 +0530 Subject: scsi: qla2xxx: Error code did not return to upper layer From: Quinn Tran <qutran@xxxxxxxxxxx> commit 0ba0b018f94525a6b32f5930f980ce9b62b72e6f upstream. 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@xxxxxxxxxxxxxxx Fixes: da7c21b72aa8 ("scsi: qla2xxx: Fix command flush during TMF") Signed-off-by: Quinn Tran <qutran@xxxxxxxxxxx> Signed-off-by: Nilesh Javali <njavali@xxxxxxxxxxx> Link: https://lore.kernel.org/r/20230821130045.34850-6-njavali@xxxxxxxxxxx Reviewed-by: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/scsi/qla2xxx/qla_init.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -2225,6 +2225,8 @@ __qla2x00_async_tm_cmd(struct tmf_arg *a rval = QLA_FUNCTION_FAILED; } } + if (tm_iocb->u.tmf.data) + rval = tm_iocb->u.tmf.data; done_free_sp: /* ref: INIT */ Patches currently in stable-queue which might be from qutran@xxxxxxxxxxx are queue-5.15/scsi-qla2xxx-error-code-did-not-return-to-upper-layer.patch queue-5.15/scsi-qla2xxx-adjust-iocb-resource-on-qpair-create.patch queue-5.15/scsi-qla2xxx-fix-tmf-leak-through.patch queue-5.15/scsi-qla2xxx-fix-deletion-race-condition.patch queue-5.15/scsi-qla2xxx-fix-erroneous-link-up-failure.patch queue-5.15/scsi-qla2xxx-flush-mailbox-commands-on-chip-reset.patch queue-5.15/scsi-qla2xxx-fix-command-flush-during-tmf.patch queue-5.15/scsi-qla2xxx-fix-inconsistent-tmf-timeout.patch queue-5.15/scsi-qla2xxx-fix-firmware-resource-tracking.patch queue-5.15/scsi-qla2xxx-turn-off-noisy-message-log.patch queue-5.15/scsi-qla2xxx-limit-tmf-to-8-per-function.patch queue-5.15/scsi-qla2xxx-fix-session-hang-in-gnl.patch