Re: [PATCH v2 10/13] vtpmmgr: Remove bogus cast from TPM2_GetRandom

2021-05-10 Thread Daniel P. Smith
On 5/6/21 9:59 AM, Jason Andryuk wrote: > The UINT32 <-> UINT16 casting in TPM2_GetRandom is incorrect. Use a > local UINT16 as needed for the TPM hardware command and assign the > result. > > Suggested-by: Samuel Thibault > Signed-off-by: Jason Andryuk > --- Reviewed-by: Daniel P. Smith >

Re: [PATCH v2 10/13] vtpmmgr: Remove bogus cast from TPM2_GetRandom

2021-05-08 Thread Samuel Thibault
Jason Andryuk, le jeu. 06 mai 2021 09:59:20 -0400, a ecrit: > The UINT32 <-> UINT16 casting in TPM2_GetRandom is incorrect. Use a > local UINT16 as needed for the TPM hardware command and assign the > result. > > Suggested-by: Samuel Thibault > Signed-off-by: Jason Andryuk Reviewed-by: Samuel

[PATCH v2 10/13] vtpmmgr: Remove bogus cast from TPM2_GetRandom

2021-05-06 Thread Jason Andryuk
The UINT32 <-> UINT16 casting in TPM2_GetRandom is incorrect. Use a local UINT16 as needed for the TPM hardware command and assign the result. Suggested-by: Samuel Thibault Signed-off-by: Jason Andryuk --- stubdom/vtpmmgr/tpm2.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions