tools: plugin: ctl: Fix reply_data_size calculation

Use the size of struct ipc4_module_large_config_reply instead of the
size of the pointer.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2024-09-13 14:56:44 -07:00 committed by Liam Girdwood
parent 0ae6a330aa
commit 5416adbc23
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ static int plug_ctl_read_integer(snd_ctl_ext_t *ext, snd_ctl_ext_key_t key, long
return -ENOMEM;
/* reply contains both the requested data and the reply status */
reply_data_size = sizeof(reply) + mixer_ctl->num_channels * sizeof(*volume);
reply_data_size = sizeof(*reply) + mixer_ctl->num_channels * sizeof(*volume);
reply_data = calloc(reply_data_size, 1);
if (!reply_data_size) {
free(msg);