1
0
Fork 0
alistair23-linux/sound/soc/amd
Chuhong Yuan a696ed262e ASoC: amd: change clk_get() to devm_clk_get() and add missed checks
[ Upstream commit 95d3befbc5 ]

cz_da7219_init() does not check the return values of clk_get(),
while da7219_clk_enable() calls clk_set_rate() to dereference
the pointers.
Add checks to fix the problems.
Also, change clk_get() to devm_clk_get() to avoid data leak after
failures.

Fixes: bb24a31ed5 ("ASoC: AMD: Configure wclk and bclk of master codec")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Link: https://lore.kernel.org/r/20201204063610.513556-1-hslester96@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:51:22 +01:00
..
include ASoC: AMD : add ACP 2.2 register headers 2016-01-10 12:44:10 +00:00
raven ASoC: amd: acp3x: use dma address for acp3x dma driver 2019-08-02 19:04:43 +01:00
Kconfig ASoC: AMD: Fix Kconfig warning without GPIOLIB 2019-08-22 18:23:23 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
acp-da7219-max98357a.c ASoC: amd: change clk_get() to devm_clk_get() and add missed checks 2020-12-30 11:51:22 +01:00
acp-pcm-dma.c ASoC: amd: use devm_platform_ioremap_resource() to simplify code 2019-09-04 13:48:04 +01:00
acp-rt5645.c ASoC: amd: acp-rt5645: use modern dai_link style 2019-06-06 21:38:04 +01:00
acp.h ASoC: use DMA addr rather than CPU pa for acp_audio_dma 2018-12-06 12:53:04 +00:00