projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unicore32: use simpler API for random address requests
[linux-2.6-block.git]
/
arch
/
unicore32
/
kernel
/
process.c
diff --git
a/arch/unicore32/kernel/process.c
b/arch/unicore32/kernel/process.c
index 00299c927852ea72cc743e97bff6e2f3273c9bf8..d7c6b676b3a56a44cea03b73e401d04b0860eba1 100644
(file)
--- a/
arch/unicore32/kernel/process.c
+++ b/
arch/unicore32/kernel/process.c
@@
-295,8
+295,7
@@
unsigned long get_wchan(struct task_struct *p)
unsigned long arch_randomize_brk(struct mm_struct *mm)
{
- unsigned long range_end = mm->brk + 0x02000000;
- return randomize_range(mm->brk, range_end, 0) ? : mm->brk;
+ return randomize_page(mm->brk, 0x02000000);
}
/*