Messages in this thread Patch in this message | | | Date | Wed, 5 May 1999 01:11:40 +0200 (CEST) | From | Andrea Arcangeli <> | Subject | [minor patch] s/KERNEL/USER in shm.c |
| |
This should be a GFP_USER to allow the task to segfault more nicely:
Index: linux/ipc/shm.c =================================================================== RCS file: /var/cvs/linux/ipc/shm.c,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 shm.c --- shm.c 1999/04/28 20:46:44 1.1.1.3 +++ linux/ipc/shm.c 1999/05/04 23:09:08 @@ -634,7 +634,7 @@ pte = __pte(shp->shm_pages[idx]); if (!pte_present(pte)) { - unsigned long page = get_free_page(GFP_KERNEL); + unsigned long page = get_free_page(GFP_USER); if (!page) { oom(current); return 0; Andrea Arcangeli
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |