[PATCH] ASoC: samsung: i2s: Fix error handling path in i2s_set_sysclk()

2017-09-03 Thread Christophe JAILLET
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 --- I'm not 100% confident in this

[PATCH] ASoC: samsung: i2s: Fix error handling path in i2s_set_sysclk()

2017-09-03 Thread Christophe JAILLET
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 --- I'm not 100% confident in this patch. It is mostly inspired by