[ofw] [PATCH] libibverbs/device: destroy completion channel when closing device

Sean Hefty sean.hefty at intel.com
Sat Jan 23 00:08:51 PST 2010


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

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
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;
 }





More information about the ofw mailing list