summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2025-10-30 19:07:10 +0300
committerMark Brown <broonie@kernel.org>2025-10-30 19:07:10 +0300
commit3d8096fd378b0b4dae356e6f037d03da83f559d2 (patch)
treeb4202ac6bb46bf143faa7fb3e3a88ce7dae4f5ae /include/linux
parente73b743bfe8a6ff4e05b5657d3f7586a17ac3ba0 (diff)
parent8fdb030fe283c84fd8d378c97ad0f32d6cdec6ce (diff)
downloadlinux-3d8096fd378b0b4dae356e6f037d03da83f559d2.tar.xz
ASoC: qcom: sdw: fix memory leak
Merge series from Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>: 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.
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions