]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[LIBIBVERBS] reorder sequence to be correct
authorStan Smith <stan.smith@intel.com>
Wed, 3 Feb 2010 23:00:07 +0000 (23:00 +0000)
committerStan Smith <stan.smith@intel.com>
Wed, 3 Feb 2010 23:00:07 +0000 (23:00 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@2696 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

branches/WOF2-2/ulp/libibverbs/src/device.cpp

index 498d781f085e73f148a3169bb295c887edb530c2..1b66d3cec912ba71f1831165b29c8406925d39f5 100644 (file)
@@ -279,9 +279,9 @@ int ibv_close_device(struct ibv_context *context)
        }\r
 \r
        context->cmd_if->Release();\r
+       CompChannelCleanup(&vcontext->context.channel);\r
        ibv_release();\r
        delete vcontext->port;\r
-       CompChannelCleanup(&vcontext->context.channel);\r
        delete vcontext;\r
        return 0;\r
 }\r