ASoC: Remove DAPM debugfs entries before freeing widgets
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 30 Apr 2011 17:45:50 +0000 (19:45 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 May 2011 17:43:52 +0000 (18:43 +0100)
commit6c45e126567eb9f96519ca97917ce317fcbe5218
treea7f5b8ee37c37ba40ae4c959d3098a7146a81ada
parentd5d1e0bef4385a0cd726613c0fc1909cd23efd39
ASoC: Remove DAPM debugfs entries before freeing widgets

Remove the DAPM debugfs entries before freeing the context's widgets, otherwise a
use after free situation might occur.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c