patch-2.3.13 linux/ipc/shm.c

Next file: linux/kernel/capability.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/ipc/shm.c linux/ipc/shm.c
@@ -687,9 +687,9 @@
 		--current->maj_flt;  /* was incremented in do_no_page */
 
 done:	/* pte_val(pte) == shp->shm_pages[idx] */
+	get_page(mem_map + MAP_NR(pte_page(pte)));
 	unlock_kernel();
 	current->min_flt++;
-	get_page(mem_map + MAP_NR(pte_page(pte)));
 	return pte_page(pte);
 
 changed:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)