Change-Id: I0b6cf1627f992acc47532553b3588342f58990b6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
}
g_platform_curr_abi_version = _hal_api_conf_get_platform_abi_version();
+
+ if (g_platform_curr_abi_version <= HAL_ABI_VERSION_UNKNOWN
+ || g_platform_curr_abi_version >= HAL_ABI_VERSION_END) {
+ _E("Invalid paramer of current HAL ABI version(%d)(%d)\n",
+ g_platform_curr_abi_version, module);
+ ret = -EINVAL;
+ goto out;
+ }
+
for (i = 0; i < info->num_abi_versions; i++) {
struct hal_abi_version_match *data
= &info->abi_versions[i];