We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a50cd commit da6d507Copy full SHA for da6d507
drivers/scsi/lpfc/lpfc_init.c
@@ -8053,7 +8053,7 @@ lpfc_sli4_driver_resource_setup(struct lpfc_hba *phba)
8053
/* Allocate device driver memory */
8054
rc = lpfc_mem_alloc(phba, SGL_ALIGN_SZ);
8055
if (rc)
8056
- return -ENOMEM;
+ goto out_destroy_workqueue;
8057
8058
/* IF Type 2 ports get initialized now. */
8059
if (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) >=
@@ -8481,6 +8481,9 @@ lpfc_sli4_driver_resource_setup(struct lpfc_hba *phba)
8481
lpfc_destroy_bootstrap_mbox(phba);
8482
out_free_mem:
8483
lpfc_mem_free(phba);
8484
+out_destroy_workqueue:
8485
+ destroy_workqueue(phba->wq);
8486
+ phba->wq = NULL;
8487
return rc;
8488
}
8489
0 commit comments