diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-07-08 21:59:59 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-08 22:16:12 +0100 |
commit | e18077b6e5dfe26e9fbbdc1fd1085a1701c24bea (patch) | |
tree | f4c0c644bb06cdc9a93c730f28a74485ac615630 /lib/fonts | |
parent | e50b1e06b79e9d51efbff9627b4dd407184ef43f (diff) | |
download | linux-e18077b6e5dfe26e9fbbdc1fd1085a1701c24bea.tar.bz2 |
ASoC: dapm: Fix kcontrol widget name memory management
The name field of the widget template is only used inside
snd_soc_dapm_new_control_unlocked() which allocates a copy for the actual
widget. This means we need to free the name allocated for the template in
dapm_kcontrol_data_alloc() and not the name of the actual widget in
dapm_kcontrol_free(). Otherwise we get a double free on the widget name and
a memory leak on the template name.
Fixes: 773da9b358bf ("ASoC: dapm: Append "Autodisable" to autodisable widget names")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/fonts')
0 files changed, 0 insertions, 0 deletions