From 72bf8ded7c53852b84779b125c26b6d870d95aa4 Mon Sep 17 00:00:00 2001 From: Tian Xin <42274920+tianx666@users.noreply.github.com> Date: Fri, 27 Dec 2024 18:03:50 +0800 Subject: [PATCH] fix core dump issue when disable HAVE_IBV_WR_API when using rdma-core-v44, and compile perftest with "configure --disable-ibv_wr_api", a core dump will ocur while ctx->dci_stream_id[i] is not allocted but assigned 0. --- src/perftest_resources.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/perftest_resources.c b/src/perftest_resources.c index fe7727d..8db7967 100755 --- a/src/perftest_resources.c +++ b/src/perftest_resources.c @@ -2157,9 +2157,11 @@ int ctx_init(struct pingpong_context *ctx, struct perftest_parameters *user_para if (user_param->work_rdma_cm == OFF) { modify_qp_to_init(ctx, user_param, i); } + #ifdef HAVE_IBV_WR_API #ifdef HAVE_DCS ctx->dci_stream_id[i] = 0; #endif + #endif qp_index++; }