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)
commit6431a7e36652517df82855ee79c8240001812a55
tree1d54c3d79cdb38d9304f92e4c148a202e4a7426f
parent1107a293b7c33723ace2a8d18f5c6febcd576d7a
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: f5c97c7b0438 ("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