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 <[EMAIL PROTECTED]> 
---
 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to