lkml.org 
[lkml]   [2011]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[RFC patch] DMAengine/Langwell: destroy PCI DMA pool in error path
From
When setting up the Langwell DMA controller, if error encountered, the newly
created PCI DMA pool should be destroied.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---
drivers/dma/intel_mid_dma.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
index f653517..130bb77 100644
--- a/drivers/dma/intel_mid_dma.c
+++ b/drivers/dma/intel_mid_dma.c
@@ -1100,6 +1100,7 @@ static int mid_setup_dma(struct pci_dev *pdev)
LNW_PERIPHRAL_MASK_SIZE);
if (dma->mask_reg == NULL) {
pr_err("ERR_MDMA:Can't map periphral intr space !!\n");
+ pci_pool_destroy(dma->dma_pool);
return -ENOMEM;
}
} else

\
 
 \ /
  Last update: 2011-07-26 14:49    [W:0.021 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site