patch-2.3.99-pre6 linux/arch/mips/kernel/sysirix.c
Next file: linux/arch/mips/mm/fault.c
Previous file: linux/arch/mips/kernel/irixelf.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Wed Apr 26 09:25:17 2000
- Orig file:
v2.3.99-pre5/linux/arch/mips/kernel/sysirix.c
- Orig date:
Tue Apr 11 15:09:13 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/arch/mips/kernel/sysirix.c linux/arch/mips/kernel/sysirix.c
@@ -533,7 +533,7 @@
int ret;
lock_kernel();
- if (brk < current->mm->end_code) {
+ if (brk < mm->end_code) {
ret = -ENOMEM;
goto out;
}
@@ -549,9 +549,9 @@
/*
* Always allow shrinking brk
*/
- if (brk <= current->mm->brk) {
+ if (brk <= mm->brk) {
mm->brk = brk;
- do_munmap(newbrk, oldbrk-newbrk);
+ do_munmap(mm, newbrk, oldbrk-newbrk);
ret = 0;
goto out;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)