All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tpm-tis: set selftest flag on all localities
@ 2017-02-23  8:11 Marc-André Lureau
  2017-02-23 13:07 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 2+ messages in thread
From: Marc-André Lureau @ 2017-02-23  8:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: stefanb, Marc-André Lureau

Set the flag on all localities, as the original commit
fd859081453f94c3cbd652 intended to.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 hw/tpm/tpm_tis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
index a6440fef91..b3c2114bdd 100644
--- a/hw/tpm/tpm_tis.c
+++ b/hw/tpm/tpm_tis.c
@@ -398,7 +398,7 @@ static void tpm_tis_receive_cb(TPMState *s, uint8_t locty,
 
     if (is_selftest_done) {
         for (l = 0; l < TPM_TIS_NUM_LOCALITIES; l++) {
-            tis->loc[locty].sts |= TPM_TIS_STS_SELFTEST_DONE;
+            tis->loc[l].sts |= TPM_TIS_STS_SELFTEST_DONE;
         }
     }
 
-- 
2.12.0.rc2.3.gc93709801

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] tpm-tis: set selftest flag on all localities
  2017-02-23  8:11 [Qemu-devel] [PATCH] tpm-tis: set selftest flag on all localities Marc-André Lureau
@ 2017-02-23 13:07 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-02-23 13:07 UTC (permalink / raw)
  To: Marc-André Lureau, qemu-devel; +Cc: stefanb

On 02/23/2017 05:11 AM, Marc-André Lureau wrote:
> Set the flag on all localities, as the original commit
> fd859081453f94c3cbd652 intended to.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> ---
>  hw/tpm/tpm_tis.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
> index a6440fef91..b3c2114bdd 100644
> --- a/hw/tpm/tpm_tis.c
> +++ b/hw/tpm/tpm_tis.c
> @@ -398,7 +398,7 @@ static void tpm_tis_receive_cb(TPMState *s, uint8_t locty,
>
>      if (is_selftest_done) {
>          for (l = 0; l < TPM_TIS_NUM_LOCALITIES; l++) {
> -            tis->loc[locty].sts |= TPM_TIS_STS_SELFTEST_DONE;
> +            tis->loc[l].sts |= TPM_TIS_STS_SELFTEST_DONE;
>          }
>      }
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-23 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23  8:11 [Qemu-devel] [PATCH] tpm-tis: set selftest flag on all localities Marc-André Lureau
2017-02-23 13:07 ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.