yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
218e99
From ecf98a5629d252b6fb2c9aa5baa9282828f3243b Mon Sep 17 00:00:00 2001
218e99
From: Gerd Hoffmann <kraxel@redhat.com>
218e99
Date: Mon, 14 Oct 2013 13:35:21 +0200
218e99
Subject: [PATCH 14/18] qemu-char: report udp backend errors
218e99
218e99
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
218e99
Message-id: <1381757723-23134-14-git-send-email-kraxel@redhat.com>
218e99
Patchwork-id: 54855
218e99
O-Subject: [RHEL-7 qemu-kvm PATCH 13/15] qemu-char: report udp backend errors
218e99
Bugzilla: 922010
218e99
RH-Acked-by: Hans de Goede <hdegoede@redhat.com>
218e99
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
218e99
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
218e99
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
218e99
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
218e99
(cherry picked from commit 58a3714c529b1b97ee078ea25b58f731aabcbfff)
218e99
---
218e99
 qemu-char.c | 2 ++
218e99
 1 file changed, 2 insertions(+)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 qemu-char.c |    2 ++
218e99
 1 files changed, 2 insertions(+), 0 deletions(-)
218e99
218e99
diff --git a/qemu-char.c b/qemu-char.c
218e99
index fc1b21a..bacc7b7 100644
218e99
--- a/qemu-char.c
218e99
+++ b/qemu-char.c
218e99
@@ -2280,6 +2280,8 @@ static CharDriverState *qemu_chr_open_udp(QemuOpts *opts)
218e99
 
218e99
     fd = inet_dgram_opts(opts, &local_err);
218e99
     if (fd < 0) {
218e99
+        qerror_report_err(local_err);
218e99
+        error_free(local_err);
218e99
         return NULL;
218e99
     }
218e99
     return qemu_chr_open_udp_fd(fd);
218e99
-- 
218e99
1.7.1
218e99