summaryrefslogtreecommitdiffstats
path: root/include/sound/soc-topology.h
diff options
context:
space:
mode:
authorCurtis Malainey <cujomalainey@chromium.org>2019-01-29 13:47:09 -0800
committerMark Brown <broonie@kernel.org>2019-02-04 10:23:51 +0100
commit78a24e10cd94420f1b4e2dc5923ae7109e2aaba1 (patch)
tree397d3ab5095f35e2c0c6079dc76742855f277bfd /include/sound/soc-topology.h
parent11907e9d3533648615db08140e3045b829d2c141 (diff)
downloadlinux-stable-78a24e10cd94420f1b4e2dc5923ae7109e2aaba1.tar.gz
linux-stable-78a24e10cd94420f1b4e2dc5923ae7109e2aaba1.tar.bz2
linux-stable-78a24e10cd94420f1b4e2dc5923ae7109e2aaba1.zip
ASoC: soc-core: clear platform pointers on error
Originally snd_soc_init_platform was not cleaning up its pointers, this was fixed to always reallocate dynamic memory but created a memory leak when snd_soc_init_platform was called multiple times during the same probe attempt and also threw away any changes made to the struct between calls. In order to avoid reallocating memory that is still valid, the behaviour will be changed to clear the dynamically set pointers on a probe error and a unregister event and snd_soc_init_platform will go back to its original behaviour of only allocating null pointers so it will stop throwing away valid changes. Signed-off-by: Curtis Malainey <cujomalainey@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-topology.h')
0 files changed, 0 insertions, 0 deletions