projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
842aaa0
)
ASoC: Intel: initial scalar variable ba
author
Jie Yang
<
[email protected]
>
Wed, 4 Feb 2015 12:23:13 +0000
(20:23 +0800)
committer
Mark Brown
<
[email protected]
>
Wed, 4 Feb 2015 12:31:43 +0000
(12:31 +0000)
Reported by Coverity: CID
1267985
CID
1267986
Fix these two Defects: Uninitialized scalar variable.
Signed-off-by: Jie Yang <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/intel/sst-firmware.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/sst-firmware.c
b/sound/soc/intel/sst-firmware.c
index cad6ea179cea9d3c0aa587c84ad691fbeb1fafc6..dcc145f81ec965758f25117a8377668918c78356 100644
(file)
--- 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;