Skip to content

Commit

Permalink
ASoC:topology:delete dynamic object during widget remove
Browse files Browse the repository at this point in the history
remove the dynamic object during the topology free stage.
to avoid multi remove operation.

Signed-off-by: Wu Zhigang <zhigang.wu@linux.intel.com>
  • Loading branch information
Wu Zhigang authored and plbossart committed Nov 1, 2018
1 parent 4c10c44 commit d28e9af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/soc-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d28e9af

Please sign in to comment.