aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-11-06 19:39:03 +0100
committerStefan Berger <stefanb@linux.vnet.ibm.com>2017-12-14 23:39:14 -0500
commit0bd6c8a9cfa4fd5c25a32ed39f3b8cb786b75b58 (patch)
tree20ea8aff5352e6217a36ae78a3d571f970669a59 /hw
parent689990598a710519eba37e4eb4d8bdebac1aa562 (diff)
downloadqemu-0bd6c8a9cfa4fd5c25a32ed39f3b8cb786b75b58.zip
qemu-0bd6c8a9cfa4fd5c25a32ed39f3b8cb786b75b58.tar.gz
qemu-0bd6c8a9cfa4fd5c25a32ed39f3b8cb786b75b58.tar.bz2
tpm-be: report error instead of front-end
Backend can give more accurate error description, and lift out the job from the frontend. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/tpm/tpm_tis.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
index 95d3afc..bf291e6 100644
--- a/hw/tpm/tpm_tis.c
+++ b/hw/tpm/tpm_tis.c
@@ -1074,9 +1074,7 @@ static void tpm_tis_realizefn(DeviceState *dev, Error **errp)
s->be_driver->fe_model = TPM_MODEL_TPM_TIS;
- if (tpm_backend_init(s->be_driver, TPM_IF(s))) {
- error_setg(errp, "tpm_tis: backend driver with id %s could not be "
- "initialized", s->backend);
+ if (tpm_backend_init(s->be_driver, TPM_IF(s), errp)) {
return;
}