aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_mem.c
diff options
context:
space:
mode:
authorJames Smart <James.Smart@Emulex.Com>2006-07-06 15:49:34 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-07-09 10:19:55 -0500
commit9f49d3b05f092b89e774be20c654ceb0c64a7d19 (patch)
treedf6e51ed79ec213090c6940aa8b827e4b2efbd3a /drivers/scsi/lpfc/lpfc_mem.c
parent[SCSI] lpfc 8.1.7: Standardize the driver on a single define for the maximum supported targets (diff)
downloadlinux-dev-9f49d3b05f092b89e774be20c654ceb0c64a7d19.tar.xz
linux-dev-9f49d3b05f092b89e774be20c654ceb0c64a7d19.zip
[SCSI] lpfc 8.1.7: Fix memory leak and cleanup code related to per ring lookup array
Fix memory leak and cleanup code related to per ring lookup array. Signed-off-by: James Smart <James.Smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_mem.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_mem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_mem.c b/drivers/scsi/lpfc/lpfc_mem.c
index 07017658ac56..066292d3995a 100644
--- a/drivers/scsi/lpfc/lpfc_mem.c
+++ b/drivers/scsi/lpfc/lpfc_mem.c
@@ -133,6 +133,11 @@ lpfc_mem_free(struct lpfc_hba * phba)
pci_pool_destroy(phba->lpfc_scsi_dma_buf_pool);
pci_pool_destroy(phba->lpfc_mbuf_pool);
+
+ /* Free the iocb lookup array */
+ kfree(psli->iocbq_lookup);
+ psli->iocbq_lookup = NULL;
+
}
void *