Re: [PATCH] tpm/ppi: replace assertion code with recovery in tpm_eval_dsm

From: Jarkko Sakkinen
Date: Tue Dec 17 2019 - 06:06:09 EST


On Sun, 2019-12-15 at 12:23 -0600, Aditya Pakki wrote:
> In tpm_eval_dsm, BUG_ON on ppi_handle is used as an assertion.
> By returning NULL to the callers, instead of crashing, the error
> can be better handled.
>
> Signed-off-by: Aditya Pakki <pakki001@xxxxxxx>

Thanks.

Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>

/Jarkko