]> 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)
commit1657c48e65ceef1a286d2c12ff3dffb673ba7da8
tree269f0bca7264bfb41dc1e47eda2b559192a979de
parent46ce382d41d267941ae86c9fb63e3ec2c162e9b7
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