On Mon, Jan 07, 2013 at 12:09:34PM -0500, John Ferlan wrote: > Don't dereference 'model' in PowerPCBaseline when there's no outputModel > --- > src/cpu/cpu_powerpc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/cpu/cpu_powerpc.c b/src/cpu/cpu_powerpc.c > index 8bef627..5e1a7b9 100644 > --- a/src/cpu/cpu_powerpc.c > +++ b/src/cpu/cpu_powerpc.c > @@ -605,7 +605,8 @@ PowerPCBaseline(virCPUDefPtr *cpus, > goto error; > } > > - base_model->data->ppc.pvr = model->data->ppc.pvr; > + if (outputModel) > + base_model->data->ppc.pvr = model->data->ppc.pvr; > if (PowerPCDecode(cpu, base_model->data, models, nmodels, NULL) < 0) > goto error; ACK Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list