summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-11-18 20:32:06 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-18 20:32:05 -0800
commit599e3b86154aa2d3d367e6326b0ffc6e4f76d020 (patch)
treed577a760af70325db6038640d89264ad05b14ca2
parent0f4381183c5a74071049e1ac038b9892401e5419 (diff)
parent8164972a6c3ead37c6c5aad159b9ff246ccdeff1 (diff)
Merge "ASoC: msm: q6dspv2: fix potentional information leak"
-rw-r--r--sound/soc/msm/qdsp6v2/q6asm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/msm/qdsp6v2/q6asm.c b/sound/soc/msm/qdsp6v2/q6asm.c
index 22e14f431bb3..e3545405f61d 100644
--- a/sound/soc/msm/qdsp6v2/q6asm.c
+++ b/sound/soc/msm/qdsp6v2/q6asm.c
@@ -421,12 +421,12 @@ static void config_debug_fs_write(struct audio_buffer *ab)
}
static void config_debug_fs_init(void)
{
- out_buffer = kmalloc(OUT_BUFFER_SIZE, GFP_KERNEL);
+ out_buffer = kzalloc(OUT_BUFFER_SIZE, GFP_KERNEL);
if (out_buffer == NULL) {
pr_err("%s: kmalloc() for out_buffer failed\n", __func__);
goto outbuf_fail;
}
- in_buffer = kmalloc(IN_BUFFER_SIZE, GFP_KERNEL);
+ in_buffer = kzalloc(IN_BUFFER_SIZE, GFP_KERNEL);
if (in_buffer == NULL) {
pr_err("%s: kmalloc() for in_buffer failed\n", __func__);
goto inbuf_fail;