From 358422a251bc43e88a3b1adba132cd2258b0d20b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Dehenne?= Date: Wed, 20 Mar 2024 09:25:25 +0100 Subject: [PATCH] man: Fix uninitialized err_entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fi_cq_readerr is no longer called on uninitialized err_data and err_data_size in fi_setup.7.md. Signed-off-by: RĂ©mi Dehenne --- man/fi_setup.7.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/man/fi_setup.7.md b/man/fi_setup.7.md index 430aa95c493..096dd5f5115 100644 --- a/man/fi_setup.7.md +++ b/man/fi_setup.7.md @@ -947,8 +947,12 @@ struct fi_cq_err_entry { /* Sample error handling */ struct fi_cq_msg_entry entry; struct fi_cq_err_entry err_entry; +char err_data[256]; int ret; +err_entry.err_data = err_data; +err_entry.err_data_size = 256; + ret = fi_cq_read(cq, &entry, 1); if (ret == -FI_EAVAIL) ret = fi_cq_readerr(cq, &err_entry, 0);