Skip to content
Merged
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: 2 additions & 0 deletions src/audio/module_adapter/module_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ struct comp_dev *module_adapter_new(const struct comp_driver *drv,
goto err;
}
dst->init_data = dst->data;
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@btian1 you still need to explain the change better in the commit message. You're not trying to skip module init, but rather returning an error to not crash in case the IPC data is corrupted for processing modules that have no init data, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is no data a valid part of the spec? If yes then this is invalid

goto err;
}
#else
if (drv->type == SOF_COMP_MODULE_ADAPTER) {
Expand Down