patch-2.1.91 linux/mm/mprotect.c
Next file: linux/mm/page_alloc.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Sat Mar 21 11:05:13 1998
- Orig file:
v2.1.90/linux/mm/mprotect.c
- Orig date:
Tue Mar 10 10:03:36 1998
diff -u --recursive --new-file v2.1.90/linux/mm/mprotect.c linux/mm/mprotect.c
@@ -185,12 +185,12 @@
if (newflags == vma->vm_flags)
return 0;
newprot = protection_map[newflags & 0xf];
- if (start == vma->vm_start)
+ if (start == vma->vm_start) {
if (end == vma->vm_end)
error = mprotect_fixup_all(vma, newflags, newprot);
else
error = mprotect_fixup_start(vma, end, newflags, newprot);
- else if (end == vma->vm_end)
+ } else if (end == vma->vm_end)
error = mprotect_fixup_end(vma, start, newflags, newprot);
else
error = mprotect_fixup_middle(vma, start, end, newflags, newprot);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov