lkml.org 
[lkml]   [2005]   [May]   [7]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 07 May 2005 17:12:21 +0900
From"Hyok S. Choi" <>
Subject[PATCH 2/4] nommu - nommu patch for fs/namei.c
nommu patch against 2.6.12-rc3-mm3, fs/namei.c, do_getname() :
to test the segment if it is KERNEL_DS or not is valid for nommu
architecture. need to skip it if it is nommu.

Signed-off-by : Hyok S. Choi <hyok.choi@samsung.com>

Index: linux-2.6.12-rc3-mm3/fs/namei.c
================================================================
--- linux-2.6.12-rc3-mm3/fs/namei.c	2005-05-06 09:58:39.000000000 +0900
+++ linux-2.6.12-rc3-mm3-hsc0/fs/namei.c	2005-05-06
17:45:01.000000000 +0900
@@ -116,12 +116,14 @@
 	int retval;
 	unsigned long len = PATH_MAX;
 
+#ifdef CONFIG_MMU
 	if (!segment_eq(get_fs(), KERNEL_DS)) {
 		if ((unsigned long) filename >= TASK_SIZE)
 			return -EFAULT;
 		if (TASK_SIZE - (unsigned long) filename < PATH_MAX)
 			len = TASK_SIZE - (unsigned long) filename;
 	}
+#endif
 
 	retval = strncpy_from_user(page, filename, len);
 	if (retval > 0) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-07 10:47    [from the cache]
©2003-2008