mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge "dsp: q6voice: Check size of payload before access"
This commit is contained in:
commit
ba543e1f8f
1 changed files with 1 additions and 1 deletions
|
|
@ -7913,7 +7913,7 @@ static int32_t qdsp_cvp_callback(struct apr_client_data *data, void *priv)
|
|||
}
|
||||
|
||||
if (data->opcode == APR_BASIC_RSP_RESULT) {
|
||||
if (data->payload_size) {
|
||||
if (data->payload_size >= (2 * sizeof(uint32_t))) {
|
||||
ptr = data->payload;
|
||||
|
||||
pr_debug("%x %x\n", ptr[0], ptr[1]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue