From 4318fbda2a7ee51caafdc4eb1f8028a3f0605142 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 5 Apr 1998 11:23:36 +0000 Subject: o Merge with Linux 2.1.91. o First round of bugfixes for the SC/MC CPUs. o FPU context switch fixes. o Lazy context switches. o Faster syscalls. o Removed dead code. o Shitloads of other things I forgot ... --- mm/mprotect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mm/mprotect.c') diff --git a/mm/mprotect.c b/mm/mprotect.c index a34225d83..0c5dac4cd 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -185,12 +185,12 @@ static int mprotect_fixup(struct vm_area_struct * vma, 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); -- cgit v1.2.3