* [PATCH 1/5] ibacm: Check umad_init return value
@ 2016-09-05 13:36 Yuval Shaia
0 siblings, 0 replies; only message in thread
From: Yuval Shaia @ 2016-09-05 13:36 UTC (permalink / raw)
To: yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA,
sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
linux-rdma-u79uwXL29TY76Z2rM5mHXA
Signed-off-by: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
---
src/acm.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/acm.c b/src/acm.c
index f6191bd..ab1269f 100644
--- a/src/acm.c
+++ b/src/acm.c
@@ -3117,7 +3117,11 @@ int CDECL_FUNC main(int argc, char **argv)
for (i = 0; i < ACM_MAX_COUNTER; i++)
atomic_init(&counter[i]);
- umad_init();
+ if (umad_init() != 0) {
+ acm_log(0, "ERROR - fail to initialize umad\n");
+ return -1;
+ }
+
if (acm_open_providers()) {
acm_log(0, "ERROR - unable to open any providers\n");
return -1;
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-05 13:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-05 13:36 [PATCH 1/5] ibacm: Check umad_init return value Yuval Shaia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).