scsi: lpfc: Reorder freeing of various DMA buffers and their list removal
authorJustin Tee <justin.tee@broadcom.com>
Wed, 1 Mar 2023 23:16:18 +0000 (15:16 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 Mar 2023 02:21:44 +0000 (21:21 -0500)
commitbf21c9bb624c85f499be271cc1b3d41bec50f7bd
tree458dcb11eb4ac9ee54d214bc05c7e1dec9a7a463
parentc6087b82a9146826564a55c5ca0164cac40348f5
scsi: lpfc: Reorder freeing of various DMA buffers and their list removal

Code sections where DMA resources are freed before list removal are
reworked to ensure item removal before being freed.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230301231626.9621-3-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_bsg.c
drivers/scsi/lpfc/lpfc_ct.c
drivers/scsi/lpfc/lpfc_sli.c