ASoC: dapm: fix error path in snd_soc_dapm_new_pcm
authoranish kumar <yesanishhere@gmail.com>
Wed, 20 Sep 2017 08:28:33 +0000 (01:28 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 20 Sep 2017 11:38:46 +0000 (12:38 +0100)
commite5af4f9fb3d405e6145f0d019ce11a97a8930915
treee08af432217d40a8709388cffda2d5a33e3acf27
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
ASoC: dapm: fix error path in snd_soc_dapm_new_pcm

w_param_text[count] is freed in the wrong error path.
Fix it by shifting the outfree_w_param label.

Signed-off-by: anish kumar <yesanishhere@gmail.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c