[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for 2.1] qemu-char: initialize out_lock
From: |
Stefan Weil |
Subject: |
Re: [Qemu-devel] [PATCH for 2.1] qemu-char: initialize out_lock |
Date: |
Wed, 25 Jun 2014 12:26:04 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Am 25.06.2014 09:04, schrieb Paolo Bonzini:
> Otherwise, Windows fails with a deadlock.
>
> Reported-by: Stefan Weil <address@hidden>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> qemu-char.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/qemu-char.c b/qemu-char.c
> index 2e50a10..17bd360 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -94,6 +94,7 @@ static QTAILQ_HEAD(CharDriverStateHead, CharDriverState)
> chardevs =
> CharDriverState *qemu_chr_alloc(void)
> {
> CharDriverState *chr = g_malloc0(sizeof(CharDriverState));
> + qemu_mutex_init(&chr->chr_write_lock);
> return chr;
> }
>
Thanks, this fixes the problem with QEMU for Windows.
Tested-by: Stefan Weil <address@hidden>