diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-10-10 04:45:07 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-12-20 03:13:45 +0100 |
commit | 3c202d14a9d73fb63c3dccb18feac5618c21e1c4 (patch) | |
tree | 53cdfe8283a913521cb567dc12872e2fd820ca52 /arch | |
parent | efi: random: fix NULL-deref when refreshing seed (diff) | |
download | linux-3c202d14a9d73fb63c3dccb18feac5618c21e1c4.tar.xz linux-3c202d14a9d73fb63c3dccb18feac5618c21e1c4.zip |
prandom: remove prandom_u32_max()
Convert the final two users of prandom_u32_max() that slipped in during
6.2-rc1 to use get_random_u32_below().
Then, with no more users left, we can finally remove the deprecated
function.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/mm/cpu_entry_area.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/cpu_entry_area.c b/arch/x86/mm/cpu_entry_area.c index 8bb1aa6a7aa3..7316a8224259 100644 --- a/arch/x86/mm/cpu_entry_area.c +++ b/arch/x86/mm/cpu_entry_area.c @@ -36,7 +36,7 @@ static __init void init_cea_offsets(void) unsigned int cea; again: - cea = prandom_u32_max(max_cea); + cea = get_random_u32_below(max_cea); for_each_possible_cpu(j) { if (cea_offset(j) == cea) |