fixed wrong checking abi version of module 16/184516/3
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 18 Jul 2018 10:36:20 +0000 (19:36 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 18 Jul 2018 12:45:40 +0000 (21:45 +0900)
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

index 45ccdf2..297dd70 100644 (file)
@@ -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;