]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: jz4740-i2s: add missed checks for clk_get()
authorChuhong Yuan <hslester96@gmail.com>
Thu, 3 Dec 2020 14:42:27 +0000 (22:42 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 4 Dec 2020 17:46:06 +0000 (17:46 +0000)
commitc1c0890febdeaeb599bc6f2ac3c4191a148f43fd
treeda461431c6e4e2d0c8713c8da3965f9a39af2a70
parenta599bcaceb9830cbe6b5a0b403fda517bf06ccf6
ASoC: jz4740-i2s: add missed checks for clk_get()

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: 2309d5ceb354 ("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>
sound/soc/jz4740/jz4740-i2s.c