Patchwork [PULL,12/14] qemu-char: report udp backend errors

login
register
mail settings
Submitter Michael Tokarev
Date June 28, 2013, 6:17 p.m.
Message ID <1372443465-22384-13-git-send-email-mjt@msgid.tls.msk.ru>
Download mbox | patch
Permalink /patch/255639/
State New
Headers show

Comments

Michael Tokarev - June 28, 2013, 6:17 p.m.
From: Gerd Hoffmann <kraxel@redhat.com>

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 qemu-char.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/qemu-char.c b/qemu-char.c
index c097ca1..5a8f9c0 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -2255,6 +2255,8 @@  static CharDriverState *qemu_chr_open_udp(QemuOpts *opts)
 
     fd = inet_dgram_opts(opts, &local_err);
     if (fd < 0) {
+        qerror_report_err(local_err);
+        error_free(local_err);
         return NULL;
     }
     return qemu_chr_open_udp_fd(fd);