]> 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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Sep 2025 02:19:59 +0000 (22:19 -0400)
commitf408dde2468b3957e92b25e7438f74c8e9fb9e73
tree8565a322d0aa26b78049349a3ff5f94e9b3d8a5e
parentb5bf6d681fce69cd1a57bfc0f1bdbbb348035117
scsi: lpfc: Check return status of lpfc_reset_flush_io_context during TGT_RESET

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>
drivers/scsi/lpfc/lpfc_scsi.c