lkml.org 
[lkml]   [2007]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH -mm] utrace: nommu fixup support utrace
From
Date
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    [W:0.094 / U:2.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site