Commit e372e712 authored by David S. Miller's avatar David S. Miller

SPARC64: do_munmap acct arg disappears

parent 73206220
...@@ -319,7 +319,7 @@ asmlinkage long sys64_munmap(unsigned long addr, size_t len) ...@@ -319,7 +319,7 @@ asmlinkage long sys64_munmap(unsigned long addr, size_t len)
(addr < PAGE_OFFSET && addr + len > -PAGE_OFFSET)) (addr < PAGE_OFFSET && addr + len > -PAGE_OFFSET))
return -EINVAL; return -EINVAL;
down_write(&current->mm->mmap_sem); down_write(&current->mm->mmap_sem);
ret = do_munmap(current->mm, addr, len, 1); ret = do_munmap(current->mm, addr, len);
up_write(&current->mm->mmap_sem); up_write(&current->mm->mmap_sem);
return ret; return ret;
} }
......
...@@ -139,7 +139,7 @@ asmlinkage int sunos_brk(u32 baddr) ...@@ -139,7 +139,7 @@ asmlinkage int sunos_brk(u32 baddr)
/* Always allow shrinking brk. */ /* Always allow shrinking brk. */
if (brk <= current->mm->brk) { if (brk <= current->mm->brk) {
current->mm->brk = brk; current->mm->brk = brk;
do_munmap(current->mm, newbrk, oldbrk-newbrk, 1); do_munmap(current->mm, newbrk, oldbrk-newbrk);
goto out; goto out;
} }
/* Check against rlimit and stack.. */ /* 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