]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fill in missing ndlp kref puts in error paths
authorJames Smart <jsmart2021@gmail.com>
Fri, 6 May 2022 03:55:09 +0000 (20:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2022 02:12:02 +0000 (22:12 -0400)
commit786464d20053d266fc760accac55308b9cb72081
treef9ee99b36dab8837b87e0e84b69d9efd8c3d7402
parent4f0ca5102cd892268c77303b7a9ac300f59cea7f
scsi: lpfc: Fill in missing ndlp kref puts in error paths

Code review, following every lpfc_nlp_get() call vs calls during error
handling, discovered cases of missing put calls.

Correct by adding ndlp kref puts in the respective error paths.

Also added comments to several of the error paths to record relationships
to reference counts.

Link: https://lore.kernel.org/r/20220506035519.50908-3-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_els.c
drivers/scsi/lpfc/lpfc_nportdisc.c
drivers/scsi/lpfc/lpfc_nvme.c
drivers/scsi/lpfc/lpfc_sli.c