scsi: lpfc: Keep NDLP reference until after freeing the IOCB after ELS handling
authorJames Smart <jsmart2021@gmail.com>
Wed, 7 Jul 2021 18:43:38 +0000 (11:43 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 19 Jul 2021 02:30:35 +0000 (22:30 -0400)
commit4e670c8afd47d535f65edf0d2b7f54f103fd59a2
tree2c99cef983c9978af8712be11a1ec6a1d228a5a3
parent21990d3d1861c7aa8e3e4ed98614f0c161c29b0c
scsi: lpfc: Keep NDLP reference until after freeing the IOCB after ELS handling

In the routine that generically cleans up an ELS after completion, the NDLP
put is done prior to the freeing of the IOCB. The IOCB may reference the
NDLP.

Move the lpfc_nlp_put() after freeing the IOCB.

Link: https://lore.kernel.org/r/20210707184351.67872-8-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_sli.c