diff options
| author | Tomas Marek <[email protected]> | 2022-10-12 18:09:24 +0200 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2022-10-21 19:15:35 +0800 |
| commit | e64f57e8cd5abe167cdf453869d6274608480519 (patch) | |
| tree | c7f030a773f9bc7d43534548dfcd9a040563f261 /tools/perf/scripts/python | |
| parent | 7e11a4fc84dcc9746936c46d9a88489a365fea45 (diff) | |
hwrng: stm32 - fix read of the last word
The stm32_rng_read() function samples TRNG by 4 bytes until at
least 5 bytes are free in the input buffer. The last four bytes
are never read. For example, 60 bytes are returned in case the
input buffer size is 64 bytes.
Read until at least 4 bytes are free in the input buffer. Fill
the buffer entirely in case the buffer size is divisible by 4.
Cc: Oleg Karfich <[email protected]>
Signed-off-by: Tomas Marek <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions