summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/sst-firmware.c
diff options
context:
space:
mode:
authorJie Yang2015-02-04 13:23:13 +0100
committerMark Brown2015-02-04 13:31:43 +0100
commitc41cda1dbe50816d839c32271007c7b832d4d14a (patch)
tree5337ad31689854ffa0a60c083403a658851f3d6f /sound/soc/intel/sst-firmware.c
parentASoC: Intel: Add support rt5645 in sst driver (diff)
downloadkernel-qcow2-linux-c41cda1dbe50816d839c32271007c7b832d4d14a.tar.gz
kernel-qcow2-linux-c41cda1dbe50816d839c32271007c7b832d4d14a.tar.xz
kernel-qcow2-linux-c41cda1dbe50816d839c32271007c7b832d4d14a.zip
ASoC: Intel: initial scalar variable ba
Reported by Coverity: CID 1267985 CID 1267986 Fix these two Defects: Uninitialized scalar variable. Signed-off-by: Jie Yang <yang.jie@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst-firmware.c')
-rw-r--r--sound/soc/intel/sst-firmware.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c
index cad6ea179cea..dcc145f81ec9 100644
--- a/sound/soc/intel/sst-firmware.c
+++ b/sound/soc/intel/sst-firmware.c
@@ -786,6 +786,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;
@@ -859,6 +860,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;