mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
dsp: Add proper param size for data logging disable
Add proper param size for AFE_PARAM_ID_PORT_DATA_LOGGING_DISABLE param id to avoid out of bounds access. Change-Id: I3ee7131e9d37de60d1809110aa461a84b1089139 Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
This commit is contained in:
parent
a64a703eb7
commit
9661f0fc01
1 changed files with 1 additions and 1 deletions
|
|
@ -4831,7 +4831,7 @@ int afe_port_send_logging_cfg(u16 port_id,
|
|||
param_hdr.module_id = AFE_MODULE_AUDIO_DEV_INTERFACE;
|
||||
param_hdr.instance_id = INSTANCE_ID_0;
|
||||
param_hdr.param_id = AFE_PARAM_ID_PORT_DATA_LOGGING_DISABLE;
|
||||
param_hdr.param_size = sizeof(&log_disable);
|
||||
param_hdr.param_size = sizeof(struct afe_param_id_port_data_log_disable_t);
|
||||
|
||||
ret = q6afe_pack_and_set_param_in_band(port_id,
|
||||
q6audio_get_port_index(port_id), param_hdr, (u8*)log_disable);
|
||||
|
|
|
|||
Loading…
Reference in a new issue