]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of cma-rm-pd
authorSean Hefty <sean.hefty@intel.com>
Thu, 19 Jul 2012 21:21:17 +0000 (14:21 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 19 Jul 2012 21:21:17 +0000 (14:21 -0700)
src/cma.c

index e2772faa75ff92c027f30b6466b3e90f6da970f0..65b52bf7da5c4ca479611b7ac25f996370096425 100755 (executable)
--- a/src/cma.c
+++ b/src/cma.c
@@ -378,8 +378,8 @@ out:
 static void ucma_put_device(struct cma_device *cma_dev)
 {
        pthread_mutex_lock(&mut);
-       if (!--cma_dev->verbs_refcnt)
-               ibv_dealloc_pd(cma_dev_array[i].pd)
+       if (!--cma_dev->refcnt)
+               ibv_dealloc_pd(cma_dev->pd);
        pthread_mutex_unlock(&mut);
 }