Re: [PATCH v5 11/17] tpm: move TPM space code out of tpm_transmit()

2018-11-08 Thread Jarkko Sakkinen
On Thu, Nov 08, 2018 at 10:16:54AM -0500, Stefan Berger wrote: > On 11/8/18 9:15 AM, Jarkko Sakkinen wrote: > > Prepare and commit TPM space before and after calling tpm_transmit() > > instead of doing that inside tpm_transmit(). After this change we can > > remove TPM_TRANSMIT_NESTED flag from tpm

Re: [PATCH v5 11/17] tpm: move TPM space code out of tpm_transmit()

2018-11-08 Thread Stefan Berger
On 11/8/18 9:15 AM, Jarkko Sakkinen wrote: Prepare and commit TPM space before and after calling tpm_transmit() instead of doing that inside tpm_transmit(). After this change we can remove TPM_TRANSMIT_NESTED flag from tpm2_prepare_space() and tpm2_commit_space() and replace it with TPM_TRANSMIT_

[PATCH v5 11/17] tpm: move TPM space code out of tpm_transmit()

2018-11-08 Thread Jarkko Sakkinen
Prepare and commit TPM space before and after calling tpm_transmit() instead of doing that inside tpm_transmit(). After this change we can remove TPM_TRANSMIT_NESTED flag from tpm2_prepare_space() and tpm2_commit_space() and replace it with TPM_TRANSMIT_UNLOCKED. Signed-off-by: Jarkko Sakkinen --