]> git.ipfire.org Git - thirdparty/qemu.git/commit
tpm: Make sure new locality passed to tpm_tis_prep_abort() is valid
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 20 Nov 2018 18:14:51 +0000 (13:14 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 28 Mar 2019 01:06:57 +0000 (20:06 -0500)
commit27b0c099fd7550f70f84273f8e3aa5eda80a1de7
tree8b53f6538a15c4c4405dd2bd72e2a12a6aa6074e
parent00d0932e0bc64811c2728a2966d76a3233b4fdbc
tpm: Make sure new locality passed to tpm_tis_prep_abort() is valid

Make sure that the new locality passed to tpm_tis_prep_abort()
is valid.

Add a comment to aborting_locty that it may be any locality, including
TPM_TIS_NO_LOCALITY.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
(cherry picked from commit e92b63ea610201bd743343fc6b11e6c39c8d3515)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/tpm/tpm_tis.c