[alsa-devel] [PATCH] ASoC: Intel: Fix allocated block list usage when adding blocks.

Liam Girdwood liam.r.girdwood at linux.intel.com
Fri May 2 17:56:29 CEST 2014


Make sure we add the allocated blocks to the modules list of blocks.

Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 sound/soc/intel/sst-firmware.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c
index fb5d084..4d50d2f 100644
--- a/sound/soc/intel/sst-firmware.c
+++ b/sound/soc/intel/sst-firmware.c
@@ -202,6 +202,9 @@ static int block_alloc_contiguous(struct sst_module *module,
 		size -= block->size;
 	}
 
+	list_for_each_entry(block, &tmp, list)
+		list_add(&block->module_list, &module->block_list);
+
 	list_splice(&tmp, &dsp->used_block_list);
 	return 0;
 }
-- 
1.9.1



More information about the Alsa-devel mailing list