ASoC: topology: Remove widgets from dobj list
Currently when we unload and reload machine driver few times we end with corrupted list and try to cleanup no longer existing objects. Fix this by removing dobj from the list. Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
33ae6ae211
commit
a46e8393d1
|
@ -493,6 +493,8 @@ static void remove_widget(struct snd_soc_component *comp,
|
||||||
free_news:
|
free_news:
|
||||||
kfree(w->kcontrol_news);
|
kfree(w->kcontrol_news);
|
||||||
|
|
||||||
|
list_del(&dobj->list);
|
||||||
|
|
||||||
/* widget w is freed by soc-dapm.c */
|
/* widget w is freed by soc-dapm.c */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue