fix REQ-48

This commit is contained in:
Tomoki Shirasawa
2016-03-25 13:05:53 +09:00
parent 12eaea401e
commit a11479eba8

View File

@ -6379,6 +6379,7 @@ SYSCALL_DECLARE(mremap)
newend = newstart + newsize;
error = extend_up_process_memory_range(vm, range,
newend);
flush_nfo_tlb();
if (!error) {
if (range->flag & VR_LOCKED) {
lckstart = oldend;
@ -6441,6 +6442,7 @@ SYSCALL_DECLARE(mremap)
}
goto out;
}
flush_nfo_tlb();
if (range->flag & VR_LOCKED) {
lckstart = newstart;
lckend = newend;