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 <[email protected]>
(cherry picked from commit d28e9af)
  • Loading branch information
Wu Zhigang authored and ranj063 committed Nov 9, 2018
1 parent 171985d commit 2977440
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 2977440

Please sign in to comment.