patch-1.3.24 linux/mm/mprotect.c

Next file: linux/mm/swap.c
Previous file: linux/mm/mmap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.23/linux/mm/mprotect.c linux/mm/mprotect.c
@@ -73,7 +73,7 @@
 {
 	pgd_t *dir;
 
-	dir = pgd_offset(current, start);
+	dir = pgd_offset(current->mm, start);
 	while (start < end) {
 		change_pmd_range(dir, start, end - start, newprot);
 		start = (start + PGDIR_SIZE) & PGDIR_MASK;

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected] with Sam's (original) version
of this