From 2b53b9b3691cf86dbdb0064a3db7b3d2cdae57a4 Mon Sep 17 00:00:00 2001 From: Lukasz Dorau Date: Fri, 27 Sep 2024 13:36:23 +0200 Subject: [PATCH] Fix setting size of DEVDAX from environment Fix setting size of DEVDAX from environment. It fixes the Coverity issue no. 469373 and 469374. Signed-off-by: Lukasz Dorau --- test/ipc_devdax_prov_consumer.c | 4 +--- test/ipc_devdax_prov_producer.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/test/ipc_devdax_prov_consumer.c b/test/ipc_devdax_prov_consumer.c index 05478e436..f1d576500 100644 --- a/test/ipc_devdax_prov_consumer.c +++ b/test/ipc_devdax_prov_consumer.c @@ -34,9 +34,7 @@ int main(int argc, char *argv[]) { } umf_devdax_memory_provider_params_t devdax_params = - umfDevDaxMemoryProviderParamsDefault( - getenv("UMF_TESTS_DEVDAX_PATH"), - atol(getenv("UMF_TESTS_DEVDAX_SIZE"))); + umfDevDaxMemoryProviderParamsDefault(path, atol(size)); return run_consumer(port, umfDevDaxMemoryProviderOps(), &devdax_params, memcopy, NULL); diff --git a/test/ipc_devdax_prov_producer.c b/test/ipc_devdax_prov_producer.c index 820d0fba9..c462706db 100644 --- a/test/ipc_devdax_prov_producer.c +++ b/test/ipc_devdax_prov_producer.c @@ -34,9 +34,7 @@ int main(int argc, char *argv[]) { } umf_devdax_memory_provider_params_t devdax_params = - umfDevDaxMemoryProviderParamsDefault( - getenv("UMF_TESTS_DEVDAX_PATH"), - atol(getenv("UMF_TESTS_DEVDAX_SIZE"))); + umfDevDaxMemoryProviderParamsDefault(path, atol(size)); return run_producer(port, umfDevDaxMemoryProviderOps(), &devdax_params, memcopy, NULL);