librdmacm: add back in missing cma_dev_cnt
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 23 Sep 2009 21:38:40 +0000 (21:38 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 23 Sep 2009 21:38:40 +0000 (21:38 +0000)
Initialization lost when moving patches from branch to trunk.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2460 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/librdmacm/src/cma.cpp

index 022d291..2727d88 100644 (file)
@@ -142,7 +142,7 @@ static int ucma_acquire(void)
                cma_dev->max_responder_resources = (uint8_t) attr.max_qp_rd_atom;\r
        }\r
        ibv_free_device_list(dev_list);\r
                cma_dev->max_responder_resources = (uint8_t) attr.max_qp_rd_atom;\r
        }\r
        ibv_free_device_list(dev_list);\r
-\r
+       cma_dev_cnt = dev_cnt;\r
 out:\r
        LeaveCriticalSection(&lock);\r
        return 0;\r
 out:\r
        LeaveCriticalSection(&lock);\r
        return 0;\r