[ofa-general] ***SPAM*** [PATCH] infiniband-diags/mcm_rereg_test.c: Add missing mad_rpc_close_port call

Hal Rosenstock hnrose at comcast.net
Wed Mar 11 06:53:20 PDT 2009


Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>

---
diff --git a/infiniband-diags/src/mcm_rereg_test.c b/infiniband-diags/src/mcm_rereg_test.c
index de5ea90..d087e4a 100644
--- a/infiniband-diags/src/mcm_rereg_test.c
+++ b/infiniband-diags/src/mcm_rereg_test.c
@@ -492,9 +492,13 @@ int main(int argc, char **argv)
 	mad = umad_get_mad(umad);
 
 	free(umad);
+#if 1
+	mad_rpc_close_port(srcport);
+#else
 	umad_unregister(port, agent);
 	umad_close_port(port);
 	umad_done();
+#endif
 
 	return 0;
 }



More information about the general mailing list