aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards/byt-rt5640.c
diff options
context:
space:
mode:
authorDragos Tarcatu <dragos_tarcatu@mentor.com>2019-12-04 15:04:47 -0600
committerMark Brown <broonie@kernel.org>2019-12-24 23:56:19 +0000
commitdd836ddf4e4e1c7f1eb2ae44783ccd70872ef24e (patch)
treecd9dcce60a20394f398242f3ecf1b6e2134a7a63 /sound/soc/intel/boards/byt-rt5640.c
parentASoC: fsl_audmix: add missed pm_runtime_disable (diff)
downloadlinux-dev-dd836ddf4e4e1c7f1eb2ae44783ccd70872ef24e.tar.xz
linux-dev-dd836ddf4e4e1c7f1eb2ae44783ccd70872ef24e.zip
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 <ranjani.sridharan@linux.intel.com> Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/20191204210447.11701-4-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/byt-rt5640.c')
0 files changed, 0 insertions, 0 deletions