Skip to content

Commit 7f293f7

Browse files
committed
btl/ofi: handle case where fi_read doesn't need
a local descriptor. Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent 0e76855 commit 7f293f7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

opal/mca/btl/ofi/btl_ofi_rdma.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Copyright (c) 2014-2018 Los Alamos National Security, LLC. All rights
44
* reserved.
55
* Copyright (c) 2018 Intel, Inc, All rights reserved
6+
* Copyright (c) 2021 Triad National Security, LLC. All rights
7+
* reserved.
8+
*
69
*
710
* $COPYRIGHT$
811
*
@@ -74,7 +77,10 @@ int mca_btl_ofi_get(mca_btl_base_module_t *btl, mca_btl_base_endpoint_t *endpoin
7477

7578
/* Remote write data across the wire */
7679
rc = fi_read(ofi_context->tx_ctx, local_address, size, /* payload */
77-
local_handle->desc, btl_endpoint->peer_addr, remote_address, remote_handle->rkey,
80+
(NULL == local_handle ? NULL : local_handle->desc),
81+
btl_endpoint->peer_addr,
82+
remote_address,
83+
remote_handle->rkey,
7884
&comp->comp_ctx); /* completion context */
7985

8086
if (-FI_EAGAIN == rc) {

0 commit comments

Comments
 (0)