From: Paolo Bonzini <pbonzini@redhat.com>
To: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>,
qemu-devel@nongnu.org, berrange@redhat.com, quintela@redhat.com,
amit.shah@redhat.com
Subject: Re: [Qemu-devel] [PATCH] migration: Fix seg with missing port
Date: Thu, 15 Sep 2016 16:28:59 +0200 [thread overview]
Message-ID: <326824ce-113c-3314-94e8-fca272444306@redhat.com> (raw)
In-Reply-To: <1473707034-31147-1-git-send-email-dgilbert@redhat.com>
On 12/09/2016 21:03, Dr. David Alan Gilbert (git) wrote:
> SocketAddress *saddr = tcp_build_address(host_port, errp);
> - socket_start_outgoing_migration(s, saddr, errp);
> + if (!*errp) {
> + socket_start_outgoing_migration(s, saddr, errp);
> + }
> }
>
> void unix_start_outgoing_migration(MigrationState *s,
> @@ -175,7 +177,9 @@ static void socket_start_incoming_migration(SocketAddress *saddr,
> void tcp_start_incoming_migration(const char *host_port, Error **errp)
> {
> SocketAddress *saddr = tcp_build_address(host_port, errp);
> - socket_start_incoming_migration(saddr, errp);
> + if (!*errp) {
> + socket_start_incoming_migration(saddr, errp);
> + }
FWIW, this less-boilerplate version was almost fine, just replace
"!*errp" with "saddr".
Paolo
prev parent reply other threads:[~2016-09-15 14:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-12 19:03 [Qemu-devel] [PATCH] migration: Fix seg with missing port Dr. David Alan Gilbert (git)
2016-09-12 19:11 ` Daniel P. Berrange
2016-09-12 19:23 ` Eric Blake
2016-09-15 14:28 ` Paolo Bonzini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=326824ce-113c-3314-94e8-fca272444306@redhat.com \
--to=pbonzini@redhat.com \
--cc=amit.shah@redhat.com \
--cc=berrange@redhat.com \
--cc=dgilbert@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).