1
0
Fork 0
alistair23-linux/sound/soc/jz4740
Chuhong Yuan d863d76536 ASoC: jz4740-i2s: add missed checks for clk_get()
[ Upstream commit 1c1fb2653a ]

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:51:18 +01:00
..
Kconfig ASoC: jz4740: Drop lb60 board code 2019-07-30 10:41:53 -07:00
Makefile ASoC: jz4740: Drop lb60 board code 2019-07-30 10:41:53 -07:00
jz4740-i2s.c ASoC: jz4740-i2s: add missed checks for clk_get() 2020-12-30 11:51:18 +01:00
jz4740-i2s.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00