diff options
author | Dragos Tarcatu <[email protected]> | 2019-12-04 15:04:47 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2019-12-24 23:56:19 +0000 |
commit | dd836ddf4e4e1c7f1eb2ae44783ccd70872ef24e (patch) | |
tree | cd9dcce60a20394f398242f3ecf1b6e2134a7a63 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 77fffa742285f2b587648d6c72b5c705633f146f (diff) |
ASoC: topology: Prevent use-after-free in snd_soc_get_pcm_runtime()
remove_link() is currently calling snd_soc_remove_dai_link() after
it has already freed the memory for the link name. But this is later
read from snd_soc_get_pcm_runtime() causing a KASAN use-after-free
warning. Reorder the cleanups to fix this issue.
Reviewed-by: Ranjani Sridharan <[email protected]>
Signed-off-by: Dragos Tarcatu <[email protected]>
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Kuninori Morimoto <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions