aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJason Cooper <[email protected]>2016-10-11 13:53:56 -0700
committerLinus Torvalds <[email protected]>2016-10-11 15:06:32 -0700
commit9c6f0902a55226b08b9703408f04b258b9afa0bc (patch)
tree49d7c8d8f3e1e058c7436b2d21d0430623bca186 /lib/mpi/mpiutil.c
parent99fdafdeacfa99ca9047641b684fa2aaf094a661 (diff)
x86: use simpler API for random address requests
Currently, all callers to randomize_range() set the length to 0 and calculate end by adding a constant to the start address. We can simplify the API to remove a bunch of needless checks and variables. Use the new randomize_addr(start, range) call to set the requested address. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Jason Cooper <[email protected]> Acked-by: Kees Cook <[email protected]> Cc: "Theodore Ts'o" <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "H . Peter Anvin" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions