mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
dsp: q6adm: fix boundary check for copp idx
Check for maximum boundary limit for adm parameters before using the parameter array. Change-Id: Idf4961c547cd38e3525c255cca849e5e4280ac29 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
This commit is contained in:
parent
408ba7c759
commit
95be5b145e
1 changed files with 1 additions and 1 deletions
|
|
@ -1389,7 +1389,7 @@ static int adm_process_get_param_response(u32 opcode, u32 idx, u32 *payload,
|
|||
*/
|
||||
if ((payload_size >= struct_size + data_size) &&
|
||||
(ARRAY_SIZE(adm_get_parameters) > idx) &&
|
||||
(ARRAY_SIZE(adm_get_parameters) >= idx + 1 + data_size)) {
|
||||
(ARRAY_SIZE(adm_get_parameters) > idx + 1 + data_size)) {
|
||||
pr_debug("%s: Received parameter data in band\n",
|
||||
__func__);
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue