char: fix avail_connections init in qemu_chr_open_eventfd()
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABAgAGBQJTmt2iAAoJEEy22O7T6HE4SAsQANwqoKl0Eg2P75LDvm5qQjev ItJb2IeY0loTGOLcIYfseBR7W+GFPcoKwjR4BQTzL5poBX3MqdIzBx+7NhG/iMJ/ lGEsDQ/ia1zmOyvL+Z7CZCYS0rsJT1k/lHeETv5UuE8HjKuGhgvUTq/ypbtKv65A rIGvXt8PadDtzrLSkTNuqLtv+Cq2fWnDHefCqJlWVAgFKEiE65y6gvf1XdPOdkK6 Q2L7+r1obMQlT3aEtNT1heduDjtQEc8RNo+fvXTaM7w4kGlWKDX0oHC3IgzFCwHK EH12YnLj1mmERP/62x+tAwMh01TcwQsyoS0F9RGthkx/rF0QI3D1hzpAkfkPfuF2 YllFH60VGaW0qes8HxclnNPBZNJuPyFm/AINm9d4aWL/i6k9lGh80OGmyLK5gPHp zJsiQiNIHuY5LHqbifU37UpCyvBkLze2JDkbLKejyFLA4NhwiocbllioWTiYIbOj M+jjoJgX3eDs5gHCK0F0ScuTixvMAOCz+juGiUuCAcTMUW3ApQFWqadwaEm+ncMQ qsL2as8Q//WlAuqmlr/nYldM6VJhKhBkSSjNYfo/rhuPNy9Z+ie/adFk8j3+SuTs fiquMB7oaffqAMiJsNSfefO/3xLWAnMUhxCj2sXH3ZpS+Iv39Sxwv0kwV7aSFS28 tMDuW7eyl+ci7q2B6kkI =AybP -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/kraxel/tags/pull-chardev-20140613-1' into staging char: fix avail_connections init in qemu_chr_open_eventfd() # gpg: Signature made Fri 13 Jun 2014 12:16:50 BST using RSA key ID D3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" * remotes/kraxel/tags/pull-chardev-20140613-1: char: fix avail_connections init in qemu_chr_open_eventfd() Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
7d5bef0873
@ -2493,7 +2493,13 @@ static gboolean tcp_chr_read(GIOChannel *chan, GIOCondition cond, void *opaque)
|
||||
#ifndef _WIN32
|
||||
CharDriverState *qemu_chr_open_eventfd(int eventfd)
|
||||
{
|
||||
return qemu_chr_open_fd(eventfd, eventfd);
|
||||
CharDriverState *chr = qemu_chr_open_fd(eventfd, eventfd);
|
||||
|
||||
if (chr) {
|
||||
chr->avail_connections = 1;
|
||||
}
|
||||
|
||||
return chr;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user