]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: topology: Fix kcontrol name string handling
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Tue, 27 Mar 2018 11:04:04 +0000 (12:04 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 27 Mar 2018 12:40:00 +0000 (20:40 +0800)
commit7c8d8f1e6fb4f557adda283ccdeaad6bd38ff3b7
tree048d9e381f475eab432585753f3e412ac779768f
parentae0945d7fbe5a6a5e767169d0c9ca622784b3c38
ASoC: topology: Fix kcontrol name string handling

Fix the topology kcontrol string handling so that string pointer
references are strdup()ed instead of being copied. This fixes issues
with kcontrol templates on the stack or ones that are freed. Remember
and free the strings too when topology is unloaded.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/soc-topology.c