ibv_close_device should destroy the completion channel
when closing the device and freeing the memory.

Signed-off-by: Sean Hefty <[email protected]>
---
This should be added to 2.2

 trunk/ulp/libibverbs/src/device.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/trunk/ulp/libibverbs/src/device.cpp 
b/trunk/ulp/libibverbs/src/device.cpp
index a515a16..498d781 100644
--- a/trunk/ulp/libibverbs/src/device.cpp
+++ b/trunk/ulp/libibverbs/src/device.cpp
@@ -281,6 +281,7 @@ int ibv_close_device(struct ibv_context *context)
        context->cmd_if->Release();
        ibv_release();
        delete vcontext->port;
+       CompChannelCleanup(&vcontext->context.channel);
        delete vcontext;
        return 0;
 }


_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to