diff options
author | qctecmdr <qctecmdr@localhost> | 2020-07-15 06:01:35 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-07-15 06:01:35 -0700 |
commit | b28f33f70db5c01af85574fd2285eae1651c2fca (patch) | |
tree | dce3c96cc6e7d54b84bcd53f7296b14b7768cae7 /asoc | |
parent | 49cf4e88bbc551c5a88885efa69d36a351666469 (diff) | |
parent | de33391c58d2c2d43c5a28422659ef9f2dd1f5a5 (diff) | |
download | msm-extra-b28f33f70db5c01af85574fd2285eae1651c2fca.tar.gz |
Merge "asoc: update error check to avoid fix crash issues"
Diffstat (limited to 'asoc')
-rw-r--r-- | asoc/msm-pcm-routing-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asoc/msm-pcm-routing-v2.c b/asoc/msm-pcm-routing-v2.c index d4fbe39f..580c5988 100644 --- a/asoc/msm-pcm-routing-v2.c +++ b/asoc/msm-pcm-routing-v2.c @@ -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; } |