unicore32: use simpler API for random address requests
authorJason Cooper <jason@lakedaemon.net>
Sat, 10 Sep 2016 10:34:29 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:29 +0000 (20:34 +1000)
commit8cb4aba572912ff4fa48aa0a46f468ece62e0c8c
tree473654385a8945f54f4030d857bda94dae433392
parentb4576b72f0c51b110b58d524c9a599ca32a4f1f2
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/20160803233913.32511-7-jason@lakedaemon.net
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/unicore32/kernel/process.c
This page took 0.024153 seconds and 5 git commands to generate.