ASoC: cht_bsw_rt5645: Fix leftover kmalloc
authorTakashi Iwai <tiwai@suse.de>
Tue, 22 Nov 2016 17:11:08 +0000 (18:11 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 22 Nov 2016 17:22:38 +0000 (17:22 +0000)
commita823a17981a73faa115bc0f7eda0190763075e2c
tree9df07420878e902585812a728984db12535a3345
parent1001354ca34179f3db924eb66672442a173147dc
ASoC: cht_bsw_rt5645: Fix leftover kmalloc

cht_bsw_rt5645 driver allocates the own codec_id string but doesn't
release it.  For simplicity, put the string in cht_mc_private; then
the string is allocated in a shot and released altogether.

Fixes: c8560b7c917f ("ASoC: cht_bsw_rt5645: Fix writing to string literal")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_rt5645.c