linux_dsm_epyc7002/sound/soc/jz4740
Chuhong Yuan 7403022a69 ASoC: jz4740-i2s: add missed checks for clk_get()
[ Upstream commit 1c1fb2653a0c2e3f310c07eacd8fc3a10e08c97a ]

jz4740_i2s_set_sysclk() does not check the return values of clk_get(),
while the file dereferences the pointers in clk_put().
Add the missed checks to fix it.

Fixes: 11bd3dd1b7 ("ASoC: Add JZ4740 ASoC support")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Link: https://lore.kernel.org/r/20201203144227.418194-1-hslester96@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:35 +01:00
..
jz4740-i2s.c ASoC: jz4740-i2s: add missed checks for clk_get() 2020-12-30 11:53:35 +01:00
jz4740-i2s.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Kconfig ASoC: ingenic: Unconditionally depend on devicetree 2020-05-28 13:20:17 +01:00
Makefile ASoC: jz4740: Drop lb60 board code 2019-07-30 10:41:53 -07:00