[PATCH] qemu: reset await_event in all error paths in qemuAgentCommand

Michal Prívozník mprivozn at redhat.com
Fri Mar 20 08:31:16 UTC 2020


On 20. 3. 2020 8:16, Nikolay Shirokovskiy wrote:
> A fixup to patch [1]. We need to reset await_event in all
> error paths.
> 
> [1] 52532073d : qemu: remove redundant needReply argument of qemuAgentCommand
> 
> Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
> ---
>  src/qemu/qemu_agent.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
> index 9ea2c59..6ff5b11 100644
> --- a/src/qemu/qemu_agent.c
> +++ b/src/qemu/qemu_agent.c
> @@ -1113,7 +1113,7 @@ qemuAgentCommand(qemuAgentPtr agent,
>      }
>  
>      if (qemuAgentGuestSync(agent) < 0)
> -        return -1;
> +        goto cleanup;
>  
>      if (!(cmdstr = virJSONValueToString(cmd, false)))
>          goto cleanup;
> 

Ooops :-)

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

and pushed.

Michal




More information about the libvir-list mailing list