diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2018-06-04 13:13:26 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-06-04 15:56:22 +0200 |
commit | ff2faf1289c1f81b5b26b9451dd1c2006aac8db8 (patch) | |
tree | 8acfe28455382fb48ccf996b5ae96bbdd3cc8ff3 /sound/soc/codecs/cs35l35.c | |
parent | ASoC: topology: Move skl-tplg-interface.h to uapi (diff) | |
download | linux-ff2faf1289c1f81b5b26b9451dd1c2006aac8db8.tar.xz linux-ff2faf1289c1f81b5b26b9451dd1c2006aac8db8.zip |
ASoC: dapm: delete dapm_kcontrol_data paths list before freeing it
dapm_kcontrol_data is freed as part of dapm_kcontrol_free(), leaving the
paths pointer dangling in the list.
This leads to system crash when we try to unload and reload sound card.
I hit this bug during ADSP crash/reboot test case on Dragon board DB410c.
Without this patch, on SLAB Poisoning enabled build, kernel crashes with
"BUG kmalloc-128 (Tainted: G W ): Poison overwritten"
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/codecs/cs35l35.c')
0 files changed, 0 insertions, 0 deletions