Skip to content

Commit

Permalink
llext: fix an error code
Browse files Browse the repository at this point in the history
llext_manager_allocate_module() should return 0 when failing, not an
error code.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh authored and kv2019i committed Dec 3, 2024
1 parent 0fed34f commit 31ab84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library_manager/llext_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ uintptr_t llext_manager_allocate_module(struct processing_module *proc,
if (buildinfo->format != SOF_MODULE_API_BUILD_INFO_FORMAT ||
buildinfo->api_version_number.full != SOF_MODULE_API_CURRENT_VERSION) {
tr_err(&lib_manager_tr, "Unsupported module API version");
return -ENOEXEC;
return 0;
}

/* Map executable code and data */
Expand Down

0 comments on commit 31ab84a

Please sign in to comment.