summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthikeyan Mani <kmani@codeaurora.org>2017-04-12 15:42:18 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-12 17:26:36 -0700
commit13feabf360f036b78a40ed38f79ffda6131f58db (patch)
treeeea1b61c305a54ffcd607fbdb72a7a86140d2157
parent9898f867d919f610016c338b39127595cc532a07 (diff)
ASoC: wcd9335: Initialize variables before use
Initialize variable before use to avoid invalid memory access. CRs-fixed: 2004067 Change-Id: I719bb13acb1ae8a9654604d251f728d98cffe936 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
-rw-r--r--sound/soc/codecs/wcd9335.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c
index a2b7fb7a3bca..7ad3aeaa8fb7 100644
--- a/sound/soc/codecs/wcd9335.c
+++ b/sound/soc/codecs/wcd9335.c
@@ -4945,7 +4945,7 @@ static int tasha_codec_enable_spline_src(struct snd_soc_codec *codec,
int src_num,
int event)
{
- u16 src_paired_reg;
+ u16 src_paired_reg = 0;
struct tasha_priv *tasha;
u16 rx_path_cfg_reg = WCD9335_CDC_RX1_RX_PATH_CFG0;
u16 rx_path_ctl_reg = WCD9335_CDC_RX1_RX_PATH_CTL;