ASoC: core: Clean up DAPM before the card debugfs
authorMark Brown <broonie@kernel.org>
Thu, 18 Aug 2016 18:32:59 +0000 (19:32 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 19 Aug 2016 09:17:26 +0000 (10:17 +0100)
commitd1e81428826221d7ff8e4d83db784d099cd232a7
tree83bcd0aa3a4cea80d090bcc7fffc6d7a01387fe2
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
ASoC: core: Clean up DAPM before the card debugfs

Both the card and DAPM cleanups recursively delete their debugfs
directories.  Since the DAPM debugfs subdirectory for the card is
located within the card debugfs this means we end up trying to double
free the DAPM subdirectory.  Reorder the cleanup to free the card
debugfs after we've cleaned up DAPM and it has deleted its own
subdirectory.

Reported-by: Russell King - ARM Linux <linux@armlinux.org.uk>
Tested-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c