From: Jim Fehlig <jfehlig@suse.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: libvir-list@redhat.com, xen-devel@lists.xen.org
Subject: Re: [PATCH 1/3] libxl: fix ref counting of libxlMigrationDstArgs
Date: Wed, 29 Jul 2015 16:07:49 -0600 [thread overview]
Message-ID: <55B94EB5.1080004@suse.com> (raw)
In-Reply-To: <20150720152834.GA23272@aepfle.de>
On 07/20/2015 09:28 AM, Olaf Hering wrote:
> On Thu, Jul 16, Jim Fehlig wrote:
>
>> @@ -448,6 +438,8 @@ libxlDomainMigrationPrepare(virConnectPtr dconn,
>> virObjectUnref(socks[i]);
>> }
>> VIR_FREE(socks);
>> + virObjectUnref(args);
> This is now below the 'error' label, so args has to be initialized.
>
> [ 149s] libxl/libxl_migration.c: In function 'libxlDomainMigrationPrepare':
> [ 149s] libxl/libxl_migration.c:463:19: warning: 'args' may be used uninitialized in this function [-Wmaybe-uninitialized]
> [ 149s] virObjectUnref(args);
> [ 149s] ^
Opps. I've squashed in the below obvious fix. Note it is safe to call
virObjectUnref with a NULL object.
Any other comments on this series? It fixes bugs in migration, including a
possible libvirtd crash, and would be a candidate to push during freeze IMO.
Regards,
Jim
next prev parent reply other threads:[~2015-07-29 22:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-16 20:51 [PATCH 0/3] libxl: a few small migration fixes Jim Fehlig
2015-07-16 20:51 ` [PATCH 1/3] libxl: fix ref counting of libxlMigrationDstArgs Jim Fehlig
2015-07-20 15:28 ` Olaf Hering
[not found] ` <20150720152834.GA23272@aepfle.de>
2015-07-29 22:07 ` Jim Fehlig [this message]
2015-07-16 20:51 ` [PATCH 2/3] libxl: don't attempt to resume domain when suspend fails Jim Fehlig
2015-07-16 20:51 ` [PATCH 3/3] libxl: acquire a job when receiving a migrating domain Jim Fehlig
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=55B94EB5.1080004@suse.com \
--to=jfehlig@suse.com \
--cc=libvir-list@redhat.com \
--cc=olaf@aepfle.de \
--cc=xen-devel@lists.xen.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.