From b5d75cbec29bccadfaefefdba5bdeae940f4f459 Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Wed, 21 Feb 2024 15:38:24 +0900 Subject: [PATCH] Add checking abi_version pointer existence When obtainig the abi_version, abi_version pointer should be exist. Checking the pointer existence part was omitted. Change-Id: I5852bdcfd288aec485643e599af56d358b2d7739 Signed-off-by: Yunhee Seo --- src/hal-api-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hal-api-common.c b/src/hal-api-common.c index 3d1cd7d..6dc8c52 100644 --- a/src/hal-api-common.c +++ b/src/hal-api-common.c @@ -448,7 +448,7 @@ static int __get_backend_data(enum hal_module module, unsigned int *abi_version, goto err_conf_exit; /* Return abi_verion of hal_backend structure */ - if (!name_size && !vendor_size) { + if (!name_size && !vendor_size && abi_version) { *abi_version = info->backend->abi_version; /* Return name of hal_backend structure */ -- 2.34.1