diff mbox

[04/11] Trying to deregister the same memory region twice leads to an

Message ID E3280858FA94444CA49D2BA02341C9835ECA1CB9@orsmsx506.amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arlin Davis Oct. 16, 2009, 11:48 p.m. UTC
None
diff mbox

Patch

diff --git a/dapl/openib_ucm/device.c b/dapl/openib_ucm/device.c
index bd31cea..90a044e 100644
--- a/dapl/openib_ucm/device.c
+++ b/dapl/openib_ucm/device.c
@@ -376,8 +376,8 @@  static void ucm_service_destroy(IN DAPL_HCA *hca)
 	if (tp->mr_sbuf)
 		ibv_dereg_mr(tp->mr_sbuf);
 
-	if (tp->mr_sbuf)
-		ibv_dereg_mr(tp->mr_sbuf);
+	if (tp->mr_rbuf)
+		ibv_dereg_mr(tp->mr_rbuf);
 
 	if (tp->qp)
 		ibv_destroy_qp(tp->qp);