diff options
| author | Slavin Liu <bolin.liu@seu.edu.cn> | 2026-09-13 20:51:47 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-24 23:30:28 +0100 |
| commit | b4136c0d69ead737197af741e20edd1c3574f6b4 (patch) | |
| tree | 40a21909c1dfb455b48432aea4c3accf0ffd670a /scripts/Makefile.thinlto | |
| parent | c82a336b186409bb24c194b1c3626736d8b6f68b (diff) | |
| download | linux-b4136c0d69ead737197af741e20edd1c3574f6b4.tar.gz linux-b4136c0d69ead737197af741e20edd1c3574f6b4.zip | |
ASoC: fsl_asrc: check the second front-end DMA channel
The temporary Front-End DMA request can fail independently of the
persistent channel acquired earlier in fsl_asrc_dma_hw_params(). The
returned NULL pointer is immediately used to read its private data.
Check the temporary channel and release the previously acquired
persistent Front-End channel on failure. Clear its slot so a later
hw_free cannot release it twice. ASoC marks a component's hw_params
only after success and skips unmarked components during rollback, so
returning an error alone would leak the earlier channel.
Detected by static analysis and reviewed with AI-assisted source auditing.
Fixes: 3117bb3109dc ("ASoC: fsl_asrc: Add ASRC ASoC CPU DAI and platform drivers")
Assisted-by: LLM
Signed-off-by: Slavin Liu <bolin.liu@seu.edu.cn>
Link: https://patch.msgid.link/20260913125147.109920-1-bolin.liu@seu.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
