add_process_memory_range: Change order of update page and insert range.
Unintended update page was occurred, when inserting range failed. Change-Id: I3d117b8613c5fbb64463c759b5fcc81db22bd624 refs: #1512
This commit is contained in:
committed by
Masamichi Takagi
parent
93dafc5f79
commit
6dce9a2bf9
@ -2735,7 +2735,7 @@ SYSCALL_DECLARE(brk)
|
||||
}
|
||||
|
||||
/* If already allocated, just expand and return */
|
||||
if (address < region->brk_end_allocated) {
|
||||
if (address <= region->brk_end_allocated) {
|
||||
region->brk_end = address;
|
||||
r = region->brk_end;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user