Re: Re: [PATCH] tpm: Add missing check in tpm_inf_recv

2021-03-01 Thread dinghao . liu
"Jarkko Sakkinen" 写道: > On Sun, Feb 28, 2021 at 05:32:30PM +0800, Dinghao Liu wrote: > > The use of wait() in tpm_inf_recv() is almost the same. It's odd that > > we only check the return value and terminate execution flow of one call. > > > > Signed-off-by: Dinghao Liu > >

Re: [PATCH] tpm: Add missing check in tpm_inf_recv

2021-03-01 Thread Jarkko Sakkinen
On Sun, Feb 28, 2021 at 05:32:30PM +0800, Dinghao Liu wrote: > The use of wait() in tpm_inf_recv() is almost the same. It's odd that > we only check the return value and terminate execution flow of one call. > > Signed-off-by: Dinghao Liu Is the unchecked return value of wait() the problem? I do