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 lgirdwood committed Sep 10, 2018
1 parent 679b291 commit 64cf3e3
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 @@ -496,6 +496,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 64cf3e3

Please sign in to comment.