Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6d89a50 authored by Ramprasad Katkam's avatar Ramprasad Katkam Committed by Gerrit - the friendly Code Review server
Browse files

audio-lnx: Correct mutex usage during error handling



Release the acquired mutex when there is failure
in enabling the soundwire clock.

Change-Id: I2e10ed7f0bd86524998a67d62e85754f7989eca2
Signed-off-by: default avatarRamprasad Katkam <katkam@codeaurora.org>
parent 18d27316
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -256,8 +256,8 @@ static int msm_int_enable_sdw_cdc_clk(struct msm_sdw_priv *msm_sdw,
			msm_sdw->int_mclk1_enabled = false;
		}
	}
	mutex_unlock(&msm_sdw->cdc_int_mclk1_mutex);
rtn:
	mutex_unlock(&msm_sdw->cdc_int_mclk1_mutex);
	return ret;
}
EXPORT_SYMBOL(msm_int_enable_sdw_cdc_clk);