| commit | 49d598f5a77b3bd69010947594f6117600bb8ca0 | [log] [tgz] |
|---|---|---|
| author | Jarkko Sakkinen <jarkko@kernel.org> | Wed Dec 10 19:11:11 2025 +0200 |
| committer | Jarkko Sakkinen <jarkko@kernel.org> | Wed Dec 10 19:17:34 2025 +0200 |
| tree | d3f7880d40479e1466864ce1650f4124f2d8f6d4 | |
| parent | 9760a3a82d8efc1113c0c29453d1a8b2016fe810 [diff] |
tpm: In tpm_get_random() replace 'retries' with a zero check Check for zero byte read instead of having retries counter in order to make wait flag properly enforcing. Progress is still guaranteed given the zero check and iterations are capped up to TPM_MAX_RNG_DATA iterations at most (as per theoretical limit). Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>