mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 14:24:25 +08:00
scsi: qla2xxx: Error code did not return to upper layer
commit0ba0b018f9
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@vger.kernel.org Fixes:da7c21b72a
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
15a71bb25b
commit
7b89c3727b
@ -2225,6 +2225,8 @@ __qla2x00_async_tm_cmd(struct tmf_arg *arg)
|
||||
rval = QLA_FUNCTION_FAILED;
|
||||
}
|
||||
}
|
||||
if (tm_iocb->u.tmf.data)
|
||||
rval = tm_iocb->u.tmf.data;
|
||||
|
||||
done_free_sp:
|
||||
/* ref: INIT */
|
||||
|
Loading…
Reference in New Issue
Block a user