[ofa-general] [PATCH] opensm/libvendor/osm_vendor_ibumad.c: Handle umad_alloc failure in osm_vendor_get
Hal Rosenstock
hnrose at comcast.net
Fri Aug 14 07:11:32 PDT 2009
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/opensm/libvendor/osm_vendor_ibumad.c b/opensm/libvendor/osm_vendor_ibumad.c
index a551493..e5f0c54 100644
--- a/opensm/libvendor/osm_vendor_ibumad.c
+++ b/opensm/libvendor/osm_vendor_ibumad.c
@@ -973,7 +973,7 @@ ib_mad_t *osm_vendor_get(IN osm_bind_handle_t h_bind,
"Acquired UMAD %p, size = %u\n", p_vw->umad, p_vw->size);
OSM_LOG_EXIT(p_vend->p_log);
- return umad_get_mad(p_vw->umad);
+ return (p_vw->umad ? umad_get_mad(p_vw->umad) : NULL);
}
/**********************************************************************
More information about the general
mailing list