Re: [PATCH] plugins/hotblocks: Fix potential deadlock in plugin_exit() function

2023-09-21 Thread Philippe Mathieu-Daudé
Hi Cong, On 21/9/23 08:12, Cong Liu wrote: This patch fixes a potential deadlock in the plugin_exit() function of QEMU. The original code does not release the lock mutex if it is NULL. This patch adds a check for it being NULL and releases the mutex in that case. You are correct. Signed-off-

[PATCH] plugins/hotblocks: Fix potential deadlock in plugin_exit() function

2023-09-20 Thread Cong Liu
This patch fixes a potential deadlock in the plugin_exit() function of QEMU. The original code does not release the lock mutex if it is NULL. This patch adds a check for it being NULL and releases the mutex in that case. Signed-off-by: Cong Liu --- contrib/plugins/hotblocks.c | 2 ++ 1 file chan