mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
cpu: Avoid NULL dereference
Don't dereference 'model' in PowerPCBaseline when there's no outputModel
This commit is contained in:
parent
36ac6e37be
commit
3e251af561
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user