]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung: i2s: Fix error handling path in i2s_set_sysclk()
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 3 Sep 2017 12:29:02 +0000 (14:29 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 Sep 2017 12:40:30 +0000 (13:40 +0100)
commitfeb47ad2a1dc741fe7ef86e708fd5b052e6ff880
tree1d54c3d79cdb38d9304f92e4c148a202e4a7426f
parent6f06bd02624e9921dad1888c1b3e31aefa27f947
ASoC: samsung: i2s: Fix error handling path in i2s_set_sysclk()

If 'clk_prepare_enable()' fails, we must 'put' the corresponding clock.
Othewise, there is a resource leak.

Fixes: 753bd52fc9bf ("ASoC: samsung: i2s: Handle return value of clk_prepare_enable.")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/i2s.c