aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorJason Cooper <[email protected]>2016-10-11 13:54:08 -0700
committerLinus Torvalds <[email protected]>2016-10-11 15:06:32 -0700
commit05c2679e9562f7e9ca11dacc91cf21b6c42d532d (patch)
tree4169d10241187f0c4fad97841619a041216a08d6 /lib/mpi/mpi-bit.c
parent09fddbaf90aa9fc0abd80332a191fbfd0158e22b (diff)
unicore32: 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: Guan Xuetao <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions