lkml.org 
[lkml]   [1999]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.240 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site