diff options
author | Jason Cooper <[email protected]> | 2016-10-11 13:53:59 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-10-11 15:06:32 -0700 |
commit | c984cbf2e34cd622b5531f776029f7b23ff17e50 (patch) | |
tree | e339762b3e16ce389f981cd57de6f7b859cbae1a /lib/mpi/mpiutil.c | |
parent | 9c6f0902a55226b08b9703408f04b258b9afa0bc (diff) |
ARM: 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: "Russell King - ARM Linux" <[email protected]>
Cc: "Theodore Ts'o" <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[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