Commit 803dfd8
scsi: lpfc: Clean up allocated queues when queue setup mbox commands fail
lpfc_sli4_queue_setup() does not allocate memory and is used for
submitting CREATE_QUEUE mailbox commands. Thus, if such mailbox
commands fail we should clean up by also freeing the memory allocated
for the queues with lpfc_sli4_queue_destroy(). Change the intended
clean up label for the lpfc_sli4_queue_setup() error case to
out_destroy_queue.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Message-ID: <20250915180811.137530-4-justintee8345@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent dcf5ea6 commit 803dfd8
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8820 | 8820 | | |
8821 | 8821 | | |
8822 | 8822 | | |
8823 | | - | |
| 8823 | + | |
8824 | 8824 | | |
8825 | 8825 | | |
8826 | 8826 | | |
| |||
9103 | 9103 | | |
9104 | 9104 | | |
9105 | 9105 | | |
9106 | | - | |
9107 | 9106 | | |
9108 | 9107 | | |
9109 | 9108 | | |
| |||
0 commit comments