]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of 0001-lazy-init.patch
authorSean Hefty <sean.hefty@intel.com>
Thu, 10 Apr 2014 03:27:27 +0000 (20:27 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 10 Apr 2014 03:27:27 +0000 (20:27 -0700)
src/cma.c

index 12c8599fa5fb9a579ee91dd44b8430950d59100b..886d04a11266c86a613751580a9a67cfb45e658d 100644 (file)
--- 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);