summaryrefslogtreecommitdiff
path: root/Documentation/sparc
diff options
context:
space:
mode:
authorDragos Tarcatu <dragos_tarcatu@mentor.com>2020-02-07 20:53:25 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-11 18:03:09 +0100
commit30238068123e304f02f594726451e3e93a06ce42 (patch)
treea9f7534ce2b082b59f9baf2fd621914f0849e06c /Documentation/sparc
parentdf4bf4dceb3a9fd91dc85b3d7f6ca1a0afdf8a75 (diff)
ASoC: topology: Fix memleak in soc_tplg_manifest_load()
commit 242c46c023610dbc0213fc8fb6b71eb836bc5d95 upstream. In case of ABI version mismatch, _manifest needs to be freed as it is just a copy of the original topology manifest. However, if a driver manifest handler is defined, that would get executed and the cleanup is never reached. Fix that by getting the return status of manifest() instead of returning directly. Fixes: 583958fa2e52 ("ASoC: topology: Make manifest backward compatible from ABI v4") Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com> Link: https://lore.kernel.org/r/20200207185325.22320-3-dragos_tarcatu@mentor.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/sparc')
0 files changed, 0 insertions, 0 deletions