aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/dma/of-dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c
index 59631b2c4666..583e50e3d47c 100644
--- a/drivers/dma/of-dma.c
+++ b/drivers/dma/of-dma.c
@@ -107,6 +107,7 @@ int of_dma_controller_register(struct device_node *np,
107 if (!nbcells) { 107 if (!nbcells) {
108 pr_err("%s: #dma-cells property is missing or invalid\n", 108 pr_err("%s: #dma-cells property is missing or invalid\n",
109 __func__); 109 __func__);
110 kfree(ofdma);
110 return -EINVAL; 111 return -EINVAL;
111 } 112 }
112 113