android_kernel_xiaomi_sm8350/sound/soc/amd
Chuhong Yuan a696ed262e ASoC: amd: change clk_get() to devm_clk_get() and add missed checks
[ Upstream commit 95d3befbc5e1ee39fc8a78713924cf7ed2b3cabe ]

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
raven ASoC: amd: acp3x: use dma address for acp3x dma driver 2019-08-02 19:04:43 +01: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
Kconfig ASoC: AMD: Fix Kconfig warning without GPIOLIB 2019-08-22 18:23:23 +01:00
Makefile