aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/verbs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/verbs.c b/src/verbs.c
index f5cf4d3..9e370ce 100644
--- a/src/verbs.c
+++ b/src/verbs.c
@@ -226,6 +226,8 @@ struct ibv_comp_channel *ibv_create_comp_channel(struct ibv_context *context)
return NULL;
}
+ VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp);
+
channel->context = context;
channel->fd = resp.fd;
channel->refcnt = 0;