mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 12:11:59 +02:00
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 <zhigang.wu@linux.intel.com>
This commit is contained in:
parent
4c10c44636
commit
d28e9af0a5
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user