ASoC: Intel: Fix allocated block list usage when adding blocks.
diff mbox

Message ID 1399046194-5544-3-git-send-email-liam.r.girdwood@linux.intel.com
State Accepted
Commit 84fbdd58614e35108ece5c79ada33443dbcdaf37
Headers show

Commit Message

Liam Girdwood May 2, 2014, 3:56 p.m. UTC
Make sure we add the allocated blocks to the modules list of blocks.

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

Comments

Mark Brown May 2, 2014, 4:53 p.m. UTC | #1
On Fri, May 02, 2014 at 04:56:29PM +0100, Liam Girdwood wrote:
> Make sure we add the allocated blocks to the modules list of blocks.

Applied, thanks.

Patch
diff mbox

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;
 }