[PATCH] ftrace: fix check_pages disable set

From: Steven Rostedt
Date: Thu May 22 2008 - 14:06:58 EST



Pekka Paalanen pointed out that I didn't set the tracing_disabled flag
when check_pages failed.

Signed-off-by: Steven Rostedt <srostedt@xxxxxxxxxx>
---
kernel/trace/trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-tip.git/kernel/trace/trace.c
===================================================================
--- linux-tip.git.orig/kernel/trace/trace.c 2008-05-22 11:44:51.000000000 -0400
+++ linux-tip.git/kernel/trace/trace.c 2008-05-22 14:03:51.000000000 -0400
@@ -251,7 +251,7 @@ __update_max_tr(struct trace_array *tr,

#define CHECK_COND(cond) \
if (unlikely(cond)) { \
- tracing_disabled = 0; \
+ tracing_disabled = 1; \
WARN_ON(1); \
return -1; \
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/