patch-2.3.14 linux/mm/mlock.c
Next file: linux/mm/page_io.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Thu Aug 12 12:22:36 1999
- Orig file:
v2.3.13/linux/mm/mlock.c
- Orig date:
Thu Jul 8 15:42:21 1999
diff -u --recursive --new-file v2.3.13/linux/mm/mlock.c linux/mm/mlock.c
@@ -130,7 +130,7 @@
struct vm_area_struct * vma, * next;
int error;
- if (!capable(CAP_IPC_LOCK))
+ if (on && !capable(CAP_IPC_LOCK))
return -EPERM;
len = (len + ~PAGE_MASK) & PAGE_MASK;
end = start + len;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)