ASoC: core: fix use after free in snd_soc_remove_platform()
authorDaniel Mack <daniel@zonque.org>
Tue, 7 Oct 2014 11:41:23 +0000 (13:41 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 7 Oct 2014 12:12:28 +0000 (13:12 +0100)
Coverity spotted an use-after-free condition in snd_soc_remove_platform().
Fix this by moving snd_soc_component_cleanup() after the debug print
statement which uses the component's string.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/soc-core.c

Simple merge