Merge remote-tracking branch 'asoc/fix/intel' into asoc-linus
[cascardo/linux.git] / sound / soc / intel / sst-firmware.c
index 28beceb..4a993d1 100644 (file)
@@ -501,6 +501,7 @@ struct sst_module *sst_module_new(struct sst_fw *sst_fw,
        sst_module->sst_fw = sst_fw;
        sst_module->scratch_size = template->scratch_size;
        sst_module->persistent_size = template->persistent_size;
+       sst_module->entry = template->entry;
 
        INIT_LIST_HEAD(&sst_module->block_list);
        INIT_LIST_HEAD(&sst_module->runtime_list);
@@ -794,6 +795,7 @@ int sst_module_alloc_blocks(struct sst_module *module)
        struct sst_block_allocator ba;
        int ret;
 
+       memset(&ba, 0, sizeof(ba));
        ba.size = module->size;
        ba.type = module->type;
        ba.offset = module->offset;
@@ -867,6 +869,7 @@ int sst_module_runtime_alloc_blocks(struct sst_module_runtime *runtime,
        if (module->persistent_size == 0)
                return 0;
 
+       memset(&ba, 0, sizeof(ba));
        ba.size = module->persistent_size;
        ba.type = SST_MEM_DRAM;