Loading dsp/q6lsm.c +11 −1 Original line number Diff line number Diff line Loading @@ -2130,7 +2130,17 @@ static int q6lsm_mmapcallback(struct apr_client_data *data, void *priv) return 0; } if (data->payload_size < (2 * sizeof(uint32_t))) { /* The payload_size can be either 4 or 8 bytes. It has to be verified whether the payload_size is atleast 4 bytes. If it is less, returns errorcode. The opcode for 4 bytes is 0x12A80 The opcode for 8 bytes is 0x110E8. */ if (data->payload_size < (2 * sizeof(uint16_t))) { pr_err("%s: payload has invalid size[%d]\n", __func__, data->payload_size); return -EINVAL; Loading Loading
dsp/q6lsm.c +11 −1 Original line number Diff line number Diff line Loading @@ -2130,7 +2130,17 @@ static int q6lsm_mmapcallback(struct apr_client_data *data, void *priv) return 0; } if (data->payload_size < (2 * sizeof(uint32_t))) { /* The payload_size can be either 4 or 8 bytes. It has to be verified whether the payload_size is atleast 4 bytes. If it is less, returns errorcode. The opcode for 4 bytes is 0x12A80 The opcode for 8 bytes is 0x110E8. */ if (data->payload_size < (2 * sizeof(uint16_t))) { pr_err("%s: payload has invalid size[%d]\n", __func__, data->payload_size); return -EINVAL; Loading