Message ID | 20190305222504.835831-1-stefanb@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
Series | [for-3.0.x/PATCH,for-3.0.1] tpm_tis: fix loop that cancels any seizure by a lower locality | expand |
diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c index d9322692ee..f4c1b6e813 100644 --- a/hw/tpm/tpm_tis.c +++ b/hw/tpm/tpm_tis.c @@ -616,7 +616,7 @@ static void tpm_tis_mmio_write(void *opaque, hwaddr addr, } /* cancel any seize by a lower locality */ - for (l = 0; l < locty - 1; l++) { + for (l = 0; l < locty; l++) { s->loc[l].access &= ~TPM_TIS_ACCESS_SEIZE; }