[libvirt] [PATCH] cpu: Fix segfault in the ppc64 driver
Andrea Bolognani
abologna at redhat.com
Tue Aug 11 16:11:30 UTC 2015
On Tue, 2015-08-11 at 17:59 +0200, Michal Privoznik wrote:
> On 11.08.2015 17:53, Andrea Bolognani wrote:
> > Commit adb865d introduced some changes in ppc64DriverNodeData()
> > that cause libvirtd to crash on startup unless this patch is
> > applied as well.
> > ---
> > src/cpu/cpu_ppc64.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c
> > index 33fec8b..85aa5bc 100644
> > --- a/src/cpu/cpu_ppc64.c
> > +++ b/src/cpu/cpu_ppc64.c
> > @@ -628,7 +628,7 @@ ppc64DriverNodeData(virArch arch)
> > if (VIR_ALLOC(nodeData) < 0)
> > goto error;
> >
> > - if (VIR_ALLOC(data) < 0)
> > + if (VIR_ALLOC(nodeData->data.ppc64) < 0)
> > goto error;
> >
> > data = nodeData->data.ppc64;
> >
>
> ACK
Pushed, thanks.
Cheers.
--
Andrea Bolognani
Software Engineer - Virtualization Team
More information about the libvir-list
mailing list