diff options
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-10-11 08:52:43 -0400 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-10-13 07:34:32 -0400 |
commit | 98979cdca44ba0e21055ee7736694aa5ebb54347 (patch) | |
tree | b0cb1aac20a748b64ead5f8ac4b7ff993c094ec4 /hw/tpm/tpm_passthrough.c | |
parent | f90ea7ba7c5ae7010ee0ce062207ae42530f57d6 (diff) |
tpm: Use EMSGSIZE instead of EBADMSG to compile on OpenBSD
EBADMSG was only added to OpenBSD very recently. To make QEMU compilable
on older OpenBSD versions use EMSGSIZE instead when a mismatch between
number of received bytes and message size indicated in the header was
found.
Return -EMSGSIZE and convert all other errnos in the same functions to
return the negative errno.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'hw/tpm/tpm_passthrough.c')
0 files changed, 0 insertions, 0 deletions