mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "asoc: update error check to avoid fix crash issues"
This commit is contained in:
commit
33ea77356f
1 changed files with 1 additions and 1 deletions
|
|
@ -30529,7 +30529,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue