Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/samples/audio/smart_amp_test_ipc3.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static int smart_amp_get_config(struct comp_dev *dev,
comp_dbg(dev, "smart_amp_set_config(), actual blob size = %zu, expected blob size = %zu",
bs, sizeof(struct sof_smart_amp_config));

if (bs == 0 || bs > size)
if (bs == 0 || bs > size || bs > sizeof(struct sof_smart_amp_config))
return -EINVAL;

ret = memcpy_s(cdata->data->data, size, &sad->config, bs);
Expand Down
Loading