]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:37:17 +0000 (16:37 +0100)
commitc5809404cd4e9b6430151fc85ac29d8bff5825e9
tree09f8134fd0ade4e3418e6eb1acacd09690c752e7
parent7f595520226454370149dcb04d75ec8a3e12a778
ASoC: jz4740-i2s: add missed checks for clk_get()

BugLink: https://bugs.launchpad.net/bugs/1910111
[ 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: 11bd3dd1b7c2 ("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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
sound/soc/jz4740/jz4740-i2s.c