From 838a3a762e41c3798078481ae372f5deaeaabda8 Mon Sep 17 00:00:00 2001 From: Dmitry Gladkov Date: Sat, 30 Sep 2017 23:09:49 +0300 Subject: [PATCH] prov/verbs: Fix for issue #3355 Signed-off-by: Dmitry Gladkov --- prov/verbs/src/verbs_cq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prov/verbs/src/verbs_cq.c b/prov/verbs/src/verbs_cq.c index bcf5b159f67..19c348b9d31 100644 --- a/prov/verbs/src/verbs_cq.c +++ b/prov/verbs/src/verbs_cq.c @@ -273,7 +273,7 @@ static inline int fi_ibv_wc_2_wce(struct fi_ibv_cq *cq, *wce = util_buf_alloc(cq->wce_pool); if (!*wce) return -FI_ENOMEM; - memset(wce, 0, sizeof(*wce)); + memset(*wce, 0, sizeof(**wce)); wc->wr_id = (uintptr_t)wre->context; (*wce)->wc = *wc;