Skip to content

Commit

Permalink
contrib/plugins: fix coverity warning in hotblocks
Browse files Browse the repository at this point in the history
Coverity complains that we have an unbalance use of mutex leading to
potential deadlocks.

Fixes: CID 1519048
Fixes: a208ba0 ("tests/plugin: add a hotblocks plugin")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231009164104.369749-26-alex.bennee@linaro.org>
  • Loading branch information
stsquad committed Oct 11, 2023
1 parent ec7ee95 commit 5b982f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/plugins/hotblocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5b982f3

Please sign in to comment.