summaryrefslogtreecommitdiff
path: root/include/linux/soundwire
diff options
context:
space:
mode:
authorRander Wang <rander.wang@intel.com>2021-03-31 08:46:10 +0800
committerVinod Koul <vkoul@kernel.org>2021-04-06 10:21:35 +0530
commit48f17f96a81763c7c8bf5500460a359b9939359f (patch)
treea26084a24568c2476368f7a676ad24cf38bea913 /include/linux/soundwire
parentb26b48749b18eedb079866c94c4ea99e6a9ef52c (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 <rander.wang@intel.com> Reviewed-by: Keyon Jie <yang.jie@intel.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20210331004610.12242-1-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/soundwire')
0 files changed, 0 insertions, 0 deletions