mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ASoC: msm: qdsp6v2: Fix the boundary check for COPP
Fix the boundary check for the array that holds the COPP information. Change-Id: Ie0bbaf25aae25e722ebefac434b00c05b8a0a2c6 Signed-off-by: Damir Didjusto <damird@codeaurora.org>
This commit is contained in:
parent
8aa4fe3554
commit
833e0ee83a
1 changed files with 1 additions and 1 deletions
|
@ -1728,7 +1728,7 @@ int adm_close(int port_id, int perf_mode, int copp_idx)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if ((copp_idx < 0) || (copp_idx > MAX_COPPS_PER_PORT)) {
|
||||
if ((copp_idx < 0) || (copp_idx >= MAX_COPPS_PER_PORT)) {
|
||||
pr_err("%s: Invalid copp idx: %d\n", __func__, copp_idx);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue