Skip to content

Commit 2b53b9b

Browse files
committed
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 <lukasz.dorau@intel.com>
1 parent e395dbb commit 2b53b9b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

test/ipc_devdax_prov_consumer.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ int main(int argc, char *argv[]) {
3434
}
3535

3636
umf_devdax_memory_provider_params_t devdax_params =
37-
umfDevDaxMemoryProviderParamsDefault(
38-
getenv("UMF_TESTS_DEVDAX_PATH"),
39-
atol(getenv("UMF_TESTS_DEVDAX_SIZE")));
37+
umfDevDaxMemoryProviderParamsDefault(path, atol(size));
4038

4139
return run_consumer(port, umfDevDaxMemoryProviderOps(), &devdax_params,
4240
memcopy, NULL);

test/ipc_devdax_prov_producer.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ int main(int argc, char *argv[]) {
3434
}
3535

3636
umf_devdax_memory_provider_params_t devdax_params =
37-
umfDevDaxMemoryProviderParamsDefault(
38-
getenv("UMF_TESTS_DEVDAX_PATH"),
39-
atol(getenv("UMF_TESTS_DEVDAX_SIZE")));
37+
umfDevDaxMemoryProviderParamsDefault(path, atol(size));
4038

4139
return run_producer(port, umfDevDaxMemoryProviderOps(), &devdax_params,
4240
memcopy, NULL);

0 commit comments

Comments
 (0)