Skip to content

Commit

Permalink
qemu-char: initialize chr_write_lock
Browse files Browse the repository at this point in the history
Otherwise, Windows fails with a deadlock.

Reported-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1403679897-11480-1-git-send-email-pbonzini@redhat.com
Tested-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
bonzini authored and pm215 committed Jun 26, 2014
1 parent 0931304 commit f3db17b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qemu-char.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit f3db17b

Please sign in to comment.