Skip to content
Snippets Groups Projects
Commit 37dd2ca6 authored by Weronika Lewandowska's avatar Weronika Lewandowska
Browse files

pmem2: fix get alignment funcs

parent 6c7e703d
No related branches found
No related tags found
No related merge requests found
......@@ -203,6 +203,7 @@ device_dax_alignment(const char *path)
}
end:
pmem2_source_delete(&src);
os_close(fd);
return size;
}
......
......@@ -140,8 +140,8 @@ pmem2_region_namespace(struct ndctl_ctx *ctx,
struct ndctl_region *region;
struct ndctl_namespace *ndns;
ASSERTne(pregion, NULL);
*pregion = NULL;
if (pregion)
*pregion = NULL;
if (pndns)
*pndns = NULL;
......@@ -177,7 +177,8 @@ pmem2_region_namespace(struct ndctl_ctx *ctx,
return ret;
if (ret == 0) {
*pregion = region;
if (pregion)
*pregion = region;
if (pndns)
*pndns = ndns;
......@@ -204,7 +205,8 @@ pmem2_region_namespace(struct ndctl_ctx *ctx,
return ret;
if (ret == 0) {
*pregion = region;
if (pregion)
*pregion = region;
if (pndns)
*pndns = ndns;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment