]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit559de2bdab89d37ee4a48c41e6b4ffb2aab92487
tree83bcd0aa3a4cea80d090bcc7fffc6d7a01387fe2
parent1372dac0367f9e37512ea4720cf3886bcb42562d
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