summaryrefslogtreecommitdiff
path: root/src/libcamera/ipa_module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/ipa_module.cpp')
-rw-r--r--src/libcamera/ipa_module.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcamera/ipa_module.cpp b/src/libcamera/ipa_module.cpp
index f79a44e7..ac166402 100644
--- a/src/libcamera/ipa_module.cpp
+++ b/src/libcamera/ipa_module.cpp
@@ -274,6 +274,11 @@ int IPAModule::loadIPAModuleInfo()
ret = elfLoadSymbol<Elf64_Ehdr, Elf64_Shdr, Elf64_Sym>
(&info_, sizeof(info_), map, soSize, "ipaModuleInfo");
+ if (info_.moduleAPIVersion != IPA_MODULE_API_VERSION) {
+ LOG(IPAModule, Error) << "IPA module API version mismatch";
+ ret = -EINVAL;
+ }
+
unmap:
munmap(map, soSize);
close: