Skip to content
Snippets Groups Projects
Commit 5695f561 authored by Xiaojun Sang's avatar Xiaojun Sang Committed by Ecco Park
Browse files

ASoC: soc: msm: initialize buffer to prevent kernel data leakage


To prevent potential kernel stack data leakage, initialize
channel_map[].

CRs-Fixed: 1100878
Bug: 35394329
Change-Id: I7b81cea20485bc7514551672bb54c7fd455049e3
Signed-off-by: default avatarXiaojun Sang <xsang@codeaurora.org>
parent a604011f
No related branches found
No related tags found
No related merge requests found
......@@ -469,7 +469,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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment