Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45571
b: refs/heads/master
c: a96e0c7
h: refs/heads/master
i:
  45569: d62964d
  45567: 7e365dd
v: v3
  • Loading branch information
Mariusz Kozlowski authored and James Bottomley committed Jan 6, 2007
1 parent e60cb05 commit 94fe55e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e9d58e723e29e8b04c09bd9badd81c1d8232f5f
refs/heads/master: a96e0c7798057dd8055d0263c076fed975c10237
6 changes: 5 additions & 1 deletion trunk/drivers/scsi/lpfc/lpfc_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ lpfc_mem_alloc(struct lpfc_hba * phba)

pool->elements = kmalloc(sizeof(struct lpfc_dmabuf) *
LPFC_MBUF_POOL_SIZE, GFP_KERNEL);
if (!pool->elements)
goto fail_free_lpfc_mbuf_pool;

pool->max_count = 0;
pool->current_count = 0;
for ( i = 0; i < LPFC_MBUF_POOL_SIZE; i++) {
Expand All @@ -82,10 +85,11 @@ lpfc_mem_alloc(struct lpfc_hba * phba)
fail_free_mbox_pool:
mempool_destroy(phba->mbox_mem_pool);
fail_free_mbuf_pool:
while (--i)
while (i--)
pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt,
pool->elements[i].phys);
kfree(pool->elements);
fail_free_lpfc_mbuf_pool:
pci_pool_destroy(phba->lpfc_mbuf_pool);
fail_free_dma_buf_pool:
pci_pool_destroy(phba->lpfc_scsi_dma_buf_pool);
Expand Down

0 comments on commit 94fe55e

Please sign in to comment.