On 10/09/2017 06:56 PM, Marc-André Lureau wrote:
+
+static void tpm_crb_realizefn(DeviceState *dev, Error **errp)
+{
+ CRBState *s = CRB(dev);
+ SysBusDevice *sbd = SYS_BUS_DEVICE(dev);
+
+ if (!tpm_find()) {
+ error_setg(errp, "at most one TPM device is permitted");
Shouldn't that be the case if tpm_find() != NULL ?
