Skip to content

Commit

Permalink
Merge pull request #732 from ldorau/Fix_condition_in_devdax_open_ipc_…
Browse files Browse the repository at this point in the history
…handle

Fix condition in devdax_open_ipc_handle()
  • Loading branch information
ldorau authored Sep 16, 2024
2 parents 55db2a3 + 3796e6f commit 9f03d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/provider_devdax_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ static umf_result_t devdax_open_ipc_handle(void *provider,

umf_result_t ret = UMF_RESULT_SUCCESS;
int fd = os_devdax_open(devdax_provider->path);
if (fd <= 0) {
if (fd == -1) {
LOG_PERR("opening a devdax (%s) failed", devdax_provider->path);
return UMF_RESULT_ERROR_INVALID_ARGUMENT;
}
Expand Down

0 comments on commit 9f03d6b

Please sign in to comment.