Skip to content

Commit c07cd11

Browse files
pbo-linarostsquad
authored andcommitted
plugins/loader: fix deadlock when resetting/uninstalling a plugin
Reported and fixed by Dmitry Kurakin. Fixes: https://gitlab.com/qemu-project/qemu/-/issues/2901 Signed-off-by: Pierrick Bouvier <[email protected]> Message-Id: <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
1 parent 9edb9c2 commit c07cd11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static void plugin_reset_destroy(struct qemu_plugin_reset_data *data)
370370
{
371371
qemu_rec_mutex_lock(&plugin.lock);
372372
plugin_reset_destroy__locked(data);
373-
qemu_rec_mutex_lock(&plugin.lock);
373+
qemu_rec_mutex_unlock(&plugin.lock);
374374
}
375375

376376
static void plugin_flush_destroy(CPUState *cpu, run_on_cpu_data arg)

0 commit comments

Comments
 (0)