ASoC: dapm: Initialize private_value in snd_soc_dapm_new_dai
authorPankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Fri, 22 Mar 2019 16:23:39 +0000 (21:53 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2019 15:53:06 +0000 (15:53 +0000)
commit8633d44002ba5c98f44bacc1397190adba832fd6
tree998cd9f05ab62b8746da7eb81f9f55e27ea6cfbb
parent78540a259b050480d20354efaf1055c233728b3b
ASoC: dapm: Initialize private_value in snd_soc_dapm_new_dai

In case of single config, private_value is left uninitialized.

The private_value does need to be initialized or in
snd_soc_dapm_new_control_unlocked() call failure case, it leads to a
bogus free in snd_soc_dapm_free_kcontrol()

Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c