Skip to content

Commit

Permalink
Merge pull request #5082 from shefty/v1.7.x
Browse files Browse the repository at this point in the history
cherry picked commits for minor issues
  • Loading branch information
shefty committed Jun 11, 2019
2 parents fc48b78 + f94a4e2 commit a2cb3e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions prov/util/src/util_buf.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016 Intel Corporation. All rights reserved.
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All rights reserved.
* Copyright (c) 2018-2019 Amazon.com, Inc. or its affiliates. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
Expand Down Expand Up @@ -161,7 +161,10 @@ int util_buf_grow(struct util_buf_pool *pool)
if (pool->attr.free_hndlr)
pool->attr.free_hndlr(pool->attr.ctx, buf_region->context);
err2:
ofi_freealign(buf_region->mem_region);
if (pool->attr.is_mmap_region)
ofi_free_hugepage_buf(buf_region->mem_region, buf_region->size);
else
ofi_freealign(buf_region->mem_region);
err1:
free(buf_region);
return -1;
Expand Down
3 changes: 2 additions & 1 deletion prov/util/src/util_mr_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ int ofi_mr_close(struct fid *fid)
static struct fi_ops ofi_mr_fi_ops = {
.size = sizeof(struct fi_ops),
.close = ofi_mr_close,
.bind = fi_no_bind,
.control = fi_no_control,
.ops_open = fi_no_ops_open,
.ops_open = fi_no_ops_open
};

int ofi_mr_regattr(struct fid *fid, const struct fi_mr_attr *attr,
Expand Down

0 comments on commit a2cb3e4

Please sign in to comment.