]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: lpfc: Check return status of lpfc_reset_flush_io_context during TGT_RESET
authorJustin Tee <justin.tee@broadcom.com>
Mon, 15 Sep 2025 18:08:03 +0000 (11:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:12 +0000 (12:45 +0100)
commite50586bbdac5eaf8a8699dd2d056c02c2df32e31
treeb75de1fa0aac2b2bec353b518ce8f7e581840aee
parent0dc59e2673c6ce52cff60522800ef493d0f408e4
scsi: lpfc: Check return status of lpfc_reset_flush_io_context during TGT_RESET

[ Upstream commit f408dde2468b3957e92b25e7438f74c8e9fb9e73 ]

If lpfc_reset_flush_io_context fails to execute, then the wrong return
status code may be passed back to upper layers when issuing a target
reset TMF command.  Fix by checking the return status from
lpfc_reset_flush_io_context() first in order to properly return FAILED
or FAST_IO_FAIL.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Message-ID: <20250915180811.137530-7-justintee8345@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc_scsi.c