From 2977440c121afb6851d347f9711b2884b42b8438 Mon Sep 17 00:00:00 2001 From: Wu Zhigang Date: Mon, 10 Sep 2018 17:26:49 +0800 Subject: [PATCH] ASoC:topology:delete dynamic object during widget remove remove the dynamic object during the topology free stage. to avoid multi remove operation. Signed-off-by: Wu Zhigang (cherry picked from commit d28e9af0a5df63d5a89fc9ad37c99085cfab4eb0) --- sound/soc/soc-topology.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index 3bbe123909a500..b78cf0d09e28a0 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -491,6 +491,7 @@ static void remove_widget(struct snd_soc_component *comp, } free_news: + list_del(&dobj->list); kfree(w->kcontrol_news); /* widget w is freed by soc-dapm.c */