[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAJd=RBCx=PGqynuogmq-1M-2JtSLvGRM=2Pm8mjZRARB5ctB0A@mail.gmail.com>
Date: Tue, 26 Jul 2011 20:48:49 +0800
From: Hillf Danton <dhillf@...il.com>
To: Vinod Koul <vinod.koul@...el.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Steven Rostedt <rostedt@...dmis.org>
Subject: [RFC patch] DMAengine/Langwell: unmap IO region in error path
When setting up the Langwell DMA controller, if error encountered, the newly
mapped IO region should be unmapped.
Signed-off-by: Hillf Danton <dhillf@...il.com>
---
drivers/dma/intel_mid_dma.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
index f653517..4c9a572 100644
--- a/drivers/dma/intel_mid_dma.c
+++ b/drivers/dma/intel_mid_dma.c
@@ -1199,6 +1199,8 @@ static int mid_setup_dma(struct pci_dev *pdev)
err_engine:
free_irq(pdev->irq, dma);
err_irq:
+ if (dma->mask_reg)
+ iounmap(dma->mask_reg);
pci_pool_destroy(dma->dma_pool);
err_dma_pool:
pr_err("ERR_MDMA:setup_dma failed: %d\n", err);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists