]> 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>
Tue, 2 Apr 2019 01:36:21 +0000 (20:36 -0500)
commit66160b7aeb0ac1feb6008286f546d8ad6c10ce7a
treece01e6562e282d5c1277b9e774b59768cf946bec
parent3fd92155fd4e0872f176796589ba3d78261e78b4
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