[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 25/25] contrib/plugins: fix coverity warning in hotblocks
From: |
Alex Bennée |
Subject: |
[PATCH 25/25] contrib/plugins: fix coverity warning in hotblocks |
Date: |
Mon, 9 Oct 2023 17:41:04 +0100 |
Coverity complains that we have an unbalance use of mutex leading to
potential deadlocks.
Fixes: CID 1519048
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
contrib/plugins/hotblocks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/plugins/hotblocks.c b/contrib/plugins/hotblocks.c
index 6b74d25fea..4de1b13494 100644
--- a/contrib/plugins/hotblocks.c
+++ b/contrib/plugins/hotblocks.c
@@ -69,8 +69,8 @@ static void plugin_exit(qemu_plugin_id_t id, void *p)
}
g_list_free(it);
- g_mutex_unlock(&lock);
}
+ g_mutex_unlock(&lock);
qemu_plugin_outs(report->str);
}
--
2.39.2
- Re: [PATCH 05/25] tests/docker: make docker engine choice entirely configure driven, (continued)
- [PATCH 07/25] configure: remove gcc version suffixes, Alex Bennée, 2023/10/09
- [PATCH 09/25] gdbstub: Fix target.xml response, Alex Bennée, 2023/10/09
- [PATCH 14/25] hw/core/cpu: Return static value with gdb_arch_name(), Alex Bennée, 2023/10/09
- [PATCH 13/25] target/arm: Move the reference to arm-core.xml, Alex Bennée, 2023/10/09
- [PATCH 23/25] contrib/plugins: fix coverity warning in cache, Alex Bennée, 2023/10/09
- [PATCH 11/25] contrib/plugins: Use GRWLock in execlog, Alex Bennée, 2023/10/09
- [PATCH 12/25] gdbstub: Introduce GDBFeature structure, Alex Bennée, 2023/10/09
- [PATCH 25/25] contrib/plugins: fix coverity warning in hotblocks,
Alex Bennée <=
- [PATCH 19/25] gdbstub: Replace gdb_regs with an array, Alex Bennée, 2023/10/09
- [PATCH 22/25] plugins: Set final instruction count in plugin_gen_tb_end, Alex Bennée, 2023/10/09
- [PATCH 15/25] gdbstub: Use g_markup_printf_escaped(), Alex Bennée, 2023/10/09
- [PATCH 21/25] target/sh4: Disable decode_gusa when plugins enabled, Alex Bennée, 2023/10/09
- [PATCH 20/25] accel/tcg: Add plugin_enabled to DisasContextBase, Alex Bennée, 2023/10/09
- [PATCH 16/25] target/arm: Remove references to gdb_has_xml, Alex Bennée, 2023/10/09
- [PATCH 17/25] target/ppc: Remove references to gdb_has_xml, Alex Bennée, 2023/10/09