]> git.ipfire.org Git - thirdparty/qemu.git/commit
tpm_tis: fix loop that cancels any seizure by a lower locality
authorLiam Merwick <liam.merwick@oracle.com>
Fri, 15 Feb 2019 13:35:17 +0000 (13:35 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 2 Apr 2019 01:36:21 +0000 (20:36 -0500)
commit7b8e8ff0092f90c8ad64934d5bcc01578ccee19c
tree6042c6902e0bdcf01b0a793a55b952f75e5c6707
parent690bb48e405c70853738f0947693970d927a8cab
tpm_tis: fix loop that cancels any seizure by a lower locality

In tpm_tis_mmio_write() if the requesting locality is seizing
access, any seizure by a lower locality is cancelled.  However the
loop doing the seizure had an off-by-one error and the locality
immediately preceding the requesting locality was not being cleared.
This is fixed by adjusting the test in the for loop to check the
localities up to the requesting locality.

Signed-off-by: Liam Merwick <Liam.Merwick@oracle.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
(cherry picked from commit 37b55d67c0f001b20b7831db3f9f24f1d453e1de)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/tpm/tpm_tis.c