From df2c68ee4fd470efdc4f0121a2fe4aa5c64771e0 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 26 May 2020 17:26:47 -0700 Subject: [PATCH] pan/bi: Initialize struct fma_op_info member extended. Fix warning reported by Coverity Scan. Uninitialized scalar variable (UNINIT) uninit_use: Using uninitialized value info. Field info.extended is uninitialized. Fixes: 8c79c710d4e1 ("pan/bi: Identify extended FMA opcodes") Signed-off-by: Vinson Lee Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/disassemble.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index e5f23eb0a6f..b9ca762c90b 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -613,6 +613,7 @@ static struct fma_op_info find_fma_op_info(unsigned op, bool extended) struct fma_op_info info; snprintf(info.name, sizeof(info.name), "op%04x", op); + info.extended = extended; info.op = op; info.src_type = FMA_THREE_SRC; return info; -- 2.30.2