librdmacm: add back in missing cma_dev_cnt
[mirror/winof/.git] / 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
-\r
+       cma_dev_cnt = dev_cnt;\r
 out:\r
        LeaveCriticalSection(&lock);\r
        return 0;\r