diff options
author | Rander Wang <[email protected]> | 2021-03-31 08:46:10 +0800 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2021-04-06 10:21:35 +0530 |
commit | 48f17f96a81763c7c8bf5500460a359b9939359f (patch) | |
tree | a26084a24568c2476368f7a676ad24cf38bea913 /tools/perf/scripts/python/sctop.py | |
parent | b26b48749b18eedb079866c94c4ea99e6a9ef52c (diff) |
soundwire: stream: fix memory leak in stream config error path
When stream config is failed, master runtime will release all
slave runtime in the slave_rt_list, but slave runtime is not
added to the list at this time. This patch frees slave runtime
in the config error path to fix the memory leak.
Fixes: 89e590535f32 ("soundwire: Add support for SoundWire stream management")
Signed-off-by: Rander Wang <[email protected]>
Reviewed-by: Keyon Jie <[email protected]>
Reviewed-by: Guennadi Liakhovetski <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions