File perftest-fix_segfault_at_end_of_test.patch of Package perftest

From 673ea0b38e3e9207ab689c6e209e9020801e1511 Mon Sep 17 00:00:00 2001
From: Gil Rockah <gilr@mellanox.com>
Date: Thu, 24 Jul 2014 22:45:08 +0300
Subject: [PATCH] Fixed segfault at end of test when using -z flag.

Change-Id: I081f16f6ce63836737b3bc3ae8ff144c99c46094
Signed-off-by: Gil Rockah <gilr@mellanox.com>
---
 src/perftest_resources.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/perftest_resources.c b/src/perftest_resources.c
index dc59716..8d242ca 100755
--- a/src/perftest_resources.c
+++ b/src/perftest_resources.c
@@ -703,7 +703,7 @@ int destroy_ctx(struct pingpong_context *ctx,
 	int test_result = 0;
 	int num_of_qps = user_param->num_of_qps;
 
-	if (user_param->use_rdma_cm == ON)
+	if (user_param->work_rdma_cm == ON)
 		rdma_disconnect(ctx->cm_id);
 
 	//in dc with bidirectional,
-- 
1.7.1