mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-20 21:34:24 -05:00
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From ae6485b9656470e9a64d5320cb8efd5820ddec8d Mon Sep 17 00:00:00 2001
|
|
From: Xiaojun Sang <xsang@codeaurora.org>
|
|
Date: Fri, 16 Dec 2016 16:25:27 +0800
|
|
Subject: ASoC: soc: msm: initialize buffer to prevent kernel data leakage
|
|
|
|
To prevent potential kernel stack data leakage, initialize
|
|
channel_map[].
|
|
|
|
CRs-Fixed: 1100878
|
|
Change-Id: I7b81cea20485bc7514551672bb54c7fd455049e3
|
|
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
|
|
---
|
|
sound/soc/msm/qdsp6v2/msm-qti-pp-config.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-qti-pp-config.c b/sound/soc/msm/qdsp6v2/msm-qti-pp-config.c
|
|
index 1eeb577..94d6cf7 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-qti-pp-config.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-qti-pp-config.c
|
|
@@ -484,7 +484,7 @@ static int msm_qti_pp_set_auxpcm_lb_vol_mixer(struct snd_kcontrol *kcontrol,
|
|
static int msm_qti_pp_get_channel_map_mixer(struct snd_kcontrol *kcontrol,
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
{
|
|
- char channel_map[PCM_FORMAT_MAX_NUM_CHANNEL];
|
|
+ char channel_map[PCM_FORMAT_MAX_NUM_CHANNEL] = {0};
|
|
int i;
|
|
|
|
adm_get_multi_ch_map(channel_map, ADM_PATH_PLAYBACK);
|
|
--
|
|
cgit v1.1
|
|
|