Commit 6e61530c authored by David S. Miller's avatar David S. Miller

SPARC64: Update for new do_munmap argument.

parent b3718602
......@@ -319,7 +319,7 @@ asmlinkage long sys64_munmap(unsigned long addr, size_t len)
(addr < PAGE_OFFSET && addr + len > -PAGE_OFFSET))
return -EINVAL;
down_write(&current->mm->mmap_sem);
ret = do_munmap(current->mm, addr, len);
ret = do_munmap(current->mm, addr, len, 1);
up_write(&current->mm->mmap_sem);
return ret;
}
......
......@@ -139,7 +139,7 @@ asmlinkage int sunos_brk(u32 baddr)
/* Always allow shrinking brk. */
if (brk <= current->mm->brk) {
current->mm->brk = brk;
do_munmap(current->mm, newbrk, oldbrk-newbrk);
do_munmap(current->mm, newbrk, oldbrk-newbrk, 1);
goto out;
}
/* Check against rlimit and stack.. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment