[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1541422938.21115.53.camel@linux.ibm.com>
Date: Mon, 05 Nov 2018 08:02:18 -0500
From: Mimi Zohar <zohar@...ux.ibm.com>
To: Roberto Sassu <roberto.sassu@...wei.com>,
jarkko.sakkinen@...ux.intel.com
Cc: linux-integrity@...r.kernel.org,
linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, silviu.vlasceanu@...wei.com
Subject: Re: [PATCH v3 1/5] tpm: change the end marker of the active_banks
array to zero
> >>> diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c
> >>> index 1a803b0cf980..f7fc4b5ee239 100644
> >>> --- a/drivers/char/tpm/tpm-interface.c
> >>> +++ b/drivers/char/tpm/tpm-interface.c
> >>> @@ -1051,7 +1051,7 @@ int tpm_pcr_extend(struct tpm_chip *chip, int pcr_idx, const u8 *hash)
> >>> memset(digest_list, 0, sizeof(digest_list));
> >>>
> >>> for (i = 0; i < ARRAY_SIZE(chip->active_banks) &&
> >>> - chip->active_banks[i] != TPM2_ALG_ERROR; i++) {
> >>> + chip->active_banks[i]; i++) {
> >>> digest_list[i].alg_id = chip->active_banks[i];
> >>> memcpy(digest_list[i].digest, hash, TPM_DIGEST_SIZE);
> >>> count++;
> >
> > The fourth patch further updates this code. Please move those changes
> > to this first patch. No need to touch the same code in both places.
>
> alg_id is introduced in patch 4/5. It cannot be moved here.
Thanks, I missed that.
Mimi
Powered by blists - more mailing lists