summaryrefslogtreecommitdiff
path: root/asoc
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2020-07-15 06:01:35 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2020-07-15 06:01:35 -0700
commitb28f33f70db5c01af85574fd2285eae1651c2fca (patch)
treedce3c96cc6e7d54b84bcd53f7296b14b7768cae7 /asoc
parent49cf4e88bbc551c5a88885efa69d36a351666469 (diff)
parentde33391c58d2c2d43c5a28422659ef9f2dd1f5a5 (diff)
downloadmsm-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.c2
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;
}