From ed6b49f5c34c3a8abe6c7bfda633c1fe7a284ac3 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Wed, 9 Apr 2014 20:27:27 -0700 Subject: [PATCH] Refresh of 0001-lazy-init.patch --- src/cma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cma.c b/src/cma.c index 12c8599f..886d04a1 100644 --- a/src/cma.c +++ b/src/cma.c @@ -228,7 +228,7 @@ static struct ibv_context *ucma_open_device(uint64_t guid) fprintf(stderr, PFX "Fatal: unable to open RDMA device\n"); ibv_free_device_list(dev_list); - return 0; + return verbs; } static int ucma_dev_init(struct cma_device *cma_dev) @@ -411,7 +411,7 @@ static int ucma_get_device(struct cma_id_private *id_priv, uint64_t guid) return ERR(ENODEV); match: - if (!ucma_dev_init(cma_dev)) + if (ucma_dev_init(cma_dev)) return ERR(ENODEV); pthread_mutex_lock(&mut); -- 2.46.0