]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: cht_bsw_rt5645: Fix leftover kmalloc
authorTakashi Iwai <tiwai@suse.de>
Tue, 22 Nov 2016 17:11:08 +0000 (18:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:29 +0000 (11:39 +0100)
commitd61a969f0e941de5ec682d6236cc9d5fa54bf85b
tree41716860bbcdc562cf1b096a33dfdafdd109806f
parent311742c40da94fed4e4492c38ed456963ed4ecd6
ASoC: cht_bsw_rt5645: Fix leftover kmalloc

commit a823a17981a73faa115bc0f7eda0190763075e2c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/intel/boards/cht_bsw_rt5645.c