]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
commitdecc27b01d584c985c231e73d3b493de6ec07af8
treef8a453869deb5eea00e7f41ec4f1f8de5c492be2
parent6596aa047b624aeec2ea321962cfdecf9953a383
ASoC: core: fix use after free in snd_soc_remove_platform()

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