]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix target reset handler from falsely returning FAILURE
authorJames Smart <jsmart2021@gmail.com>
Wed, 7 Jul 2021 18:43:37 +0000 (11:43 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 19 Jul 2021 02:30:35 +0000 (22:30 -0400)
commit2618399bd4ee26b0b3f5dcd1c811414b4e8329b3
tree269f0bca7264bfb41dc1e47eda2b559192a979de
parent05e8d0c6ff814ef570a110d0257a7f642fc05997
scsi: lpfc: Fix target reset handler from falsely returning FAILURE

Previous logic accidentally overrides the status variable to FAILURE when
target reset status is SUCCESS.

Refactor the non-SUCCESS logic of lpfc_vmid_vport_cleanup(), which resolves
the false override.

Link: https://lore.kernel.org/r/20210707184351.67872-7-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c