From: Daniel Mack Date: Tue, 7 Oct 2014 11:41:23 +0000 (+0200) Subject: ASoC: core: fix use after free in snd_soc_remove_platform() X-Git-Tag: fixes-against-v3.18-rc2~128^2^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=decc27b01d584c985c231e73d3b493de6ec07af8;p=pandora-kernel.git 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 Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed