dsp: Fix out of bound memory access.
Fix out of bound memory access in q6afe_load_avcs_modules() for afe_avcs_payload_port_mapping structure. Change-Id: Ibe0e90e4fbedc2cf6a88abd9f3845643020a904a
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
c702957fa2
commit
e7ca214c29
@@ -359,8 +359,12 @@ load_unload:
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
pr_err("%s: Not enough ports available\n", __func__);
|
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
if (i == MAX_ALLOWED_USE_CASES) {
|
||||||
|
pr_err("%s: Not enough ports available\n", __func__);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
fail:
|
fail:
|
||||||
kfree(pm[i]->payload);
|
kfree(pm[i]->payload);
|
||||||
pm[i]->payload = NULL;
|
pm[i]->payload = NULL;
|
||||||
|
Reference in New Issue
Block a user