tpm: Make sure new locality passed to tpm_tis_prep_abort() is valid
commite92b63ea610201bd743343fc6b11e6c39c8d3515
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 20 Nov 2018 18:14:51 +0000 (20 13:14 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 4 Dec 2018 15:21:25 +0000 (4 10:21 -0500)
tree19f3b25e643b69e18f53451872ede36ba7ab85ec
parent0f5faee3592ef7ce004a79eeff0061ee4362b428
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>
hw/tpm/tpm_tis.c