提交 3e251af5 编写于 作者: J John Ferlan 提交者: Eric Blake

cpu: Avoid NULL dereference

Don't dereference 'model' in PowerPCBaseline when there's no outputModel
上级 36ac6e37
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册