]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: bcm: bcm63xx-pcm-whistler: Check return value of of_dma_configure()
authorHaotian Zhang <vulab@iscas.ac.cn>
Tue, 2 Dec 2025 10:16:42 +0000 (18:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:35 +0000 (14:03 +0100)
commit488ef9dd5c094a96d506a502aa467b983484c4b5
tree4a72a13eb811d13be9828b6ac02a418480a2571c
parent2606e7e090fe19237cf8604e3445e1c4cf657c88
ASoC: bcm: bcm63xx-pcm-whistler: Check return value of of_dma_configure()

[ Upstream commit 0ebbd45c33d0049ebf5a22c1434567f0c420b333 ]

bcm63xx_soc_pcm_new() does not check the return value of
of_dma_configure(), which may fail with -EPROBE_DEFER or
other errors, allowing PCM setup to continue with incomplete
DMA configuration.

Add error checking for of_dma_configure() and return on failure.

Fixes: 88eb404ccc3e ("ASoC: brcm: Add DSL/PON SoC audio driver")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20251202101642.492-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/bcm/bcm63xx-pcm-whistler.c