summaryrefslogtreecommitdiff
path: root/sound/soc/soc-component.c
diff options
context:
space:
mode:
authorDragos Tarcatu <dragos_tarcatu@mentor.com>2020-02-07 20:53:24 +0200
committerMark Brown <broonie@kernel.org>2020-02-19 19:48:42 +0000
commit2b2d5c4db732c027a14987cfccf767dac1b45170 (patch)
treefe7c2c1b455ba541c3c811b5861a8a191508a0ad /sound/soc/soc-component.c
parent6c89ffea60aa3b2a33ae7987de1e84bfb89e4c9e (diff)
ASoC: topology: Fix memleak in soc_tplg_link_elems_load()
If soc_tplg_link_config() fails, _link needs to be freed in case of topology ABI version mismatch. However the current code is returning directly and ends up leaking memory in this case. This patch fixes that. Fixes: 593d9e52f9bb ("ASoC: topology: Add support to configure existing physical DAI links") Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com> Link: https://lore.kernel.org/r/20200207185325.22320-2-dragos_tarcatu@mentor.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-component.c')
0 files changed, 0 insertions, 0 deletions