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