From b587c76b5319d00f0c1305ce91053c1fe97c42ca Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Wed, 18 Jul 2018 19:36:20 +0900 Subject: [PATCH] fixed wrong checking abi version of module if minor version of module less than minimum minor version, func return false even if major version greater than minimum major version. so patch fixed it Change-Id: I6bb6a9dc7d46d4b6e949577f01d5bb443bc99b49 --- src/tdm_display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tdm_display.c b/src/tdm_display.c index 45ccdf2..297dd70 100644 --- a/src/tdm_display.c +++ b/src/tdm_display.c @@ -850,6 +850,9 @@ tdm_module_check_abi(tdm_private_module *private_module, int abimaj, int abimin) { tdm_backend_module *module = private_module->module_data; + if (TDM_BACKEND_GET_ABI_MAJOR(module->abi_version) > abimaj) + return 1; + if (TDM_BACKEND_GET_ABI_MAJOR(module->abi_version) < abimaj) return 0; -- 2.7.4