[ofw] [PATCH] libibverbs: release WVProvider reference from ibvw_acquire_windata

Sean Hefty sean.hefty at intel.com
Wed Feb 3 17:13:55 PST 2010


ibvw_release_windata should release the WVProvider reference taken
in ibvw_acquire_windata.

This fixes a cleanup issue when dynamically loading/unloading
librdmacm, which calls these functions.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
This patch should be added to the 2.2 release

 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 1b66d3c..e404be7 100644
--- a/trunk/ulp/libibverbs/src/device.cpp
+++ b/trunk/ulp/libibverbs/src/device.cpp
@@ -121,6 +121,7 @@ int ibvw_get_windata(struct ibvw_windata *windata, int
version)
 __declspec(dllexport)
 void ibvw_release_windata(struct ibvw_windata *windata, int version)
 {
+	prov->Release();
 	ibv_release();
 }
 





More information about the ofw mailing list