diff options
author | Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> | 2021-10-15 19:12:52 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-29 18:49:40 +0300 |
commit | 7db53c21b1c3c25676d1125049bc92c756421cd6 (patch) | |
tree | ded9d80f5410086f828fe6cc55cfbca84b93ebdc /sound/soc/soc-core.c | |
parent | b6a4e209fb7da1b49cb72fedb405f90e485d5a48 (diff) | |
download | linux-7db53c21b1c3c25676d1125049bc92c756421cd6.tar.xz |
ASoC: core: Remove invalid snd_soc_component_set_jack call
If snd_soc_component_set_jack() is called after
snd_soc_component_remove() it may operate on memory which is freed in
->remove handler.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20211015161257.27052-2-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 94f1548b8a32..dcf6be4c4aaa 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1342,9 +1342,6 @@ static void soc_remove_component(struct snd_soc_component *component, if (probed) snd_soc_component_remove(component); - /* For framework level robustness */ - snd_soc_component_set_jack(component, NULL, NULL); - list_del_init(&component->card_list); snd_soc_dapm_free(snd_soc_component_get_dapm(component)); soc_cleanup_component_debugfs(component); |