Skip to content

Instantly share code, notes, and snippets.

@hppritcha
Created March 31, 2016 17:32
Show Gist options
  • Save hppritcha/9533267619fd4ae7d567f027f1082525 to your computer and use it in GitHub Desktop.
Save hppritcha/9533267619fd4ae7d567f027f1082525 to your computer and use it in GitHub Desktop.
From 9505a688587acccef4bb4f0314c3f15dcaec2019 Mon Sep 17 00:00:00 2001
From: Howard Pritchard <howardp@lanl.gov>
Date: Thu, 31 Mar 2016 11:28:05 -0600
Subject: [PATCH] prov/verbs: fix a bug
Signed-off-by: Howard Pritchard <howardp@lanl.gov>
---
prov/verbs/src/verbs_info.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/prov/verbs/src/verbs_info.c b/prov/verbs/src/verbs_info.c
index 8d11573..9a22c68 100644
--- a/prov/verbs/src/verbs_info.c
+++ b/prov/verbs/src/verbs_info.c
@@ -961,8 +961,9 @@ int fi_ibv_getinfo(uint32_t version, const char *node, const char *service,
ret = fi_ibv_get_matching_info(NULL, hints, rai, info);
}
- fi_ibv_destroy_ep(hints->ep_attr->type, rai,
- FI_IBV_EP_TYPE_IS_RDM(hints) ? &(rdm_cm.listener) : &id);
+ if (hints && hints->ep_attr)
+ fi_ibv_destroy_ep(hints->ep_attr->type, rai,
+ FI_IBV_EP_TYPE_IS_RDM(hints) ? &(rdm_cm.listener) : &id);
out:
if (!ret || ret == -FI_ENOMEM)
--
1.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment