Skip to content

ASoC:topology:fix the oops bug during topology free.#80

Merged
lgirdwood merged 2 commits into
topic/sof-devfrom
unknown repository
Aug 24, 2018
Merged

ASoC:topology:fix the oops bug during topology free.#80
lgirdwood merged 2 commits into
topic/sof-devfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 14, 2018

Copy link
Copy Markdown

the topology free will cause oops:

  1. becasue the snd_soc_dapm_route{} is allocated in stack, which cause
    oops duirng topology free stage. allocate it on the heap and add
    function snd_soc_tplg_route_remove() free function.
  2. the string name is allocated in topology's short life buffer,
    which cause oops during topology free stage. re-allocate it on the
    heap can avoid the issue.

Signed-off-by: Wu Zhigang zhigang.wu@linux.intel.com

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants