From: Mark Brown Date: Thu, 30 Oct 2025 16:07:10 +0000 (+0000) Subject: ASoC: qcom: sdw: fix memory leak X-Git-Tag: v6.19-rc1~156^2~3^2~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d8096fd378b0b4dae356e6f037d03da83f559d2;p=thirdparty%2Fkernel%2Flinux.git ASoC: qcom: sdw: fix memory leak Merge series from Srinivas Kandagatla : For some reason we endedup allocating sdw_stream_runtime for every cpu dai, this has two issues. 1. we never set snd_soc_dai_set_stream for non soundwire dai, which means there is no way that we can free this, resulting in memory leak 2. startup and shutdown callbacks can be called without hw_params callback called. This combination results in memory leak because machine driver sruntime array pointer is only set in hw_params callback. All the machine drivers have these memory leaks, so cleanup the mess and make them use common helpers from sdw.c This patch series fix the issue, and while we are at it, it also remove some redundant code from machine drivers. --- 3d8096fd378b0b4dae356e6f037d03da83f559d2