mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/4] nommu - nommu patch for fs/namei.c
@ 2005-05-07  8:12 Hyok S. Choi
  0 siblings, 0 replies; only message in thread
From: Hyok S. Choi @ 2005-05-07  8:12 UTC (permalink / raw)
  To: Linux-Kernel List, uClinux development list

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) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-07  8:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-07  8:12 [PATCH 2/4] nommu - nommu patch for fs/namei.c Hyok S. Choi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®