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

Commit b28f33f7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: update error check to avoid fix crash issues"

parents 49cf4e88 de33391c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30240,7 +30240,7 @@ static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
	clk_drift = ucontrol->value.integer.value[1];
	clk_reset = ucontrol->value.integer.value[2];
	if (be_idx < 0 && be_idx >= MSM_BACKEND_DAI_MAX) {
	if (be_idx < 0 || be_idx >= MSM_BACKEND_DAI_MAX) {
		pr_err("%s: Invalid be id %d\n", __func__, be_idx);
		return -EINVAL;
	}