ASoC: topology: Fix memory leaks with ABI version mismatch
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ASoC: topology: Fix memleak in soc_tplg_link_elems_load()sound/ | +4 | 1 reply | |
| 2/2 | ASoC: topology: Fix memleak in soc_tplg_manifest_load()sound/ | +6 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [alsa-devel] [PATCH 0/2] ASoC: topology: Fix memory leaks with ABI version mismatch
The topology loader in soc-topology.c is currently accepting ABI version mismatches for some topology components in order to keep backwards compatibility with ABIv4. When dealing with these ABI mismatch situations, temporary copies of the v4 objects are allocated and passed on to the right driver topology handlers. After that they're supposed to be freed.
However, memory leaks are currently possible in soc_tplg_link_elems_load() and also soc_tplg_manifest_load().
These patches fix these.
I've originally created a PR on github for SOF at:
https://github.com/thesofproject/linux/pull/1771
as my impression was this can affect older SOF toplogies.
But as it turns out this may impact Skylake instead.
Dragos Tarcatu (2):
ASoC: topology: Fix memleak in soc_tplg_link_elems_load()
ASoC: topology: Fix memleak in soc_tplg_manifest_load()
sound/soc/soc-topology.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-)
Signature · 6 lines
2.17.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel