diff options
| author | Richard Fitzgerald <[email protected]> | 2024-08-22 11:57:25 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2024-08-22 12:42:40 +0000 |
| commit | bff980d8d9ca537fd5f3c0e9a99876c1e3713e81 (patch) | |
| tree | a00d73d309e7435fe382a37e1226916b139edfa0 /lib/crypto/mpi/mpi-mul.c | |
| parent | ASoC: allow module autoloading for table board_ids (diff) | |
| download | kernel-bff980d8d9ca537fd5f3c0e9a99876c1e3713e81.tar.gz kernel-bff980d8d9ca537fd5f3c0e9a99876c1e3713e81.zip | |
ASoC: cs-amp-lib-test: Force test calibration blob entries to be valid
For a normal calibration blob the calTarget values must be non-zero and
unique, and the calTime values must be non-zero. Don't rely on
get_random_bytes() to be random enough to guarantee this. Force the
calTarget and calTime values to be valid while retaining randomness
in the values.
Signed-off-by: Richard Fitzgerald <[email protected]>
Fixes: 177862317a98 ("ASoC: cs-amp-lib: Add KUnit test for calibration helpers")
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions
