diff options
| author | Dragos Tarcatu <dragos_tarcatu@mentor.com> | 2019-12-04 15:04:47 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-01 09:34:42 +0000 |
| commit | 98aedb8935551b1e8934e3482c6b8e6884da8fba (patch) | |
| tree | 9866a635f66eb8e07db1c2d8a401a99bb04f21ab /drivers/phy | |
| parent | 68b74847c8bcec2728332c8929ae3d3cf0e83338 (diff) | |
| download | linux-98aedb8935551b1e8934e3482c6b8e6884da8fba.tar.gz linux-98aedb8935551b1e8934e3482c6b8e6884da8fba.tar.bz2 linux-98aedb8935551b1e8934e3482c6b8e6884da8fba.zip | |
ASoC: topology: Prevent use-after-free in snd_soc_get_pcm_runtime()
[ Upstream commit dd836ddf4e4e1c7f1eb2ae44783ccd70872ef24e ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/phy')
0 files changed, 0 insertions, 0 deletions
