]> 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)
commit15767683800e3422ce7501cdf8446f7b0d337c20
tree83bcd0aa3a4cea80d090bcc7fffc6d7a01387fe2
parentb482605f7939bd4035b2d11a7952dc3da5821c6d
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