summaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/memalloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c
index 278248b..9d93f02 100644
--- a/sound/core/memalloc.c
+++ b/sound/core/memalloc.c
@@ -172,6 +172,9 @@ static void snd_malloc_dev_iram(struct snd_dma_buffer *dmab, size_t size)
struct device *dev = dmab->dev.dev;
struct gen_pool *pool = NULL;
+ dmab->area = NULL;
+ dmab->addr = 0;
+
if (dev->of_node)
pool = of_get_named_gen_pool(dev->of_node, "iram", 0);
OpenPOWER on IntegriCloud