commit | e68b1130dfbb834a4a028df01133591aeb59d241 | [log] [tgz] |
---|---|---|
author | Cong Ding <dinggnu@gmail.com> | Thu Feb 14 11:16:10 2013 +0100 |
committer | Vinod Koul <vinod.koul@intel.com> | Thu Feb 14 19:11:46 2013 +0530 |
tree | 364877c35c453e27590b1b43508ceb0f1928c942 | |
parent | 877e86f28385407f05c5aa4e397d4ccb3233f01a [diff] |
dma: of-dma.c: fix memory leakage The memory allocated to ofdma might be a leakage when error occurs. Signed-off-by: Cong Ding <dinggnu@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c index 59631b2..583e50e3 100644 --- a/drivers/dma/of-dma.c +++ b/drivers/dma/of-dma.c
@@ -107,6 +107,7 @@ if (!nbcells) { pr_err("%s: #dma-cells property is missing or invalid\n", __func__); + kfree(ofdma); return -EINVAL; }