
From: Wenkai Lin <linwenkai6@hisilicon.com> Fix for the runtime error: load of value 255, which is not a valid value for type '_Bool'. The output_done is not initialized, it will be default-initialized to an indeterminate value, when it is set to the req, it will cause the runtime error. Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com> Signed-off-by: Qi Tao <taoqi10@huawei.com> --- wd_join_gather.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wd_join_gather.c b/wd_join_gather.c index 23e435b8..616d039a 100644 --- a/wd_join_gather.c +++ b/wd_join_gather.c @@ -1763,7 +1763,8 @@ struct wd_join_gather_msg *wd_join_gather_get_msg(__u32 idx, __u32 tag) static int wd_join_gather_poll_ctx(__u32 idx, __u32 expt, __u32 *count) { struct wd_ctx_config_internal *config = &wd_join_gather_setting.config; - struct wd_join_gather_msg resp_msg, *msg; + struct wd_join_gather_msg resp_msg = {0}; + struct wd_join_gather_msg *msg; struct wd_ctx_internal *ctx; struct wd_join_gather_req *req; __u64 recv_count = 0; -- 2.33.0