]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu: Fix segfault in the ppc64 driver
authorAndrea Bolognani <abologna@redhat.com>
Tue, 11 Aug 2015 15:51:28 +0000 (17:51 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 11 Aug 2015 16:05:04 +0000 (18:05 +0200)
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

index 33fec8bc56fb95c3fa93111dd270754eecc2bd8b..85aa5bcb31de92436f14503ccbef72f1c19bcfb7 100644 (file)
@@ -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;