diff options
author | Dragos Tarcatu <[email protected]> | 2019-11-11 16:20:38 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2019-11-12 17:12:27 +0000 |
commit | 1b4efdaf6d6053c8944cee0edba0969dc1be7d4b (patch) | |
tree | 1e903c0cc7e0b30fae054af99dd2a31e69c31d63 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 5e35d5f4224adb24c2bfa814b9fb562050aba3ea (diff) |
ASoC: SOF: topology: free kcontrol memory on error
The volume and bytes kcontrols are currently not freeing their
memory on initialization failures. When an error occurs, all the
widgets loaded so far are unloaded via sof_widget_unload().
But this only happens for the widgets that got successfully loaded.
Fix that by kfree()-ing the allocated memory on load error.
Fixes: 311ce4fe7637d ("ASoC: SOF: Add support for loading topologies")
Reviewed-by: Paul Olaru <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Signed-off-by: Dragos Tarcatu <[email protected]>
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions