lkml.org 
[lkml]   [2007]   [Mar]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH -mm] utrace: nommu fixup support utrace
From"Wu, Bryan" <>
DateTue, 06 Mar 2007 15:25:27 +0800
Hi folks,

When adding utrace support to blackfin architecture, I found a compiling
error in nommu related utrace stuff. Then this little patch will fix
this for nommu arch utrace.

Signed-off-by: Bryan Wu <bryan.wu@analog.com> 
---
 mm/nommu.c |    4 ++++
 1 file changed, 4 insertions(+)
Index: linux-2.6/mm/nommu.c
===================================================================
--- linux-2.6.orig/mm/nommu.c	2007-03-06 15:14:22.000000000 +0800
+++ linux-2.6/mm/nommu.c	2007-03-06 15:16:01.000000000 +0800
@@ -673,7 +673,11 @@
 	 * it's being traced - otherwise breakpoints set in it may interfere
 	 * with another untraced process
 	 */
+#ifdef CONFIG_UTRACE
+	if (flags & MAP_PRIVATE) 
+#else
 	if ((flags & MAP_PRIVATE) && (current->ptrace & PT_PTRACED))
+#endif
 		vm_flags &= ~VM_MAYSHARE;
 
 	return vm_flags;
_
Thanks
-Bryan Wu
-
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: 2007-03-06 08:31    [from the cache]
©2003-2008