提交 fef28553 编写于 作者: J Ján Tomko

qemuDomainAttachRNGDevice: do not access source.file randomly

We pass the source.file to qemuCheckCCWS390AddressSupport for
the purpose of reporting an error message without actually checking
that the rng device is of type VIR_DOMAIN_RNG_BACKEND_RANDOM.

Change it to a hardcoded "rng" string, which also avoids
referring to the device by a host-side attribute.
上级 7afaaa93
...@@ -2159,7 +2159,7 @@ qemuDomainAttachRNGDevice(virConnectPtr conn, ...@@ -2159,7 +2159,7 @@ qemuDomainAttachRNGDevice(virConnectPtr conn,
} }
} else { } else {
if (!qemuCheckCCWS390AddressSupport(vm->def, rng->info, priv->qemuCaps, if (!qemuCheckCCWS390AddressSupport(vm->def, rng->info, priv->qemuCaps,
rng->source.file)) "rng"))
goto cleanup; goto cleanup;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册