summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-09-26 10:13:54 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-26 10:13:54 -0700
commit4187e7e9f1294afdcb3be5d00aa74412a1c2ded8 (patch)
tree1d4b3447cb2a7407d97e51ee5c48069d6b92c9e3 /kernel/trace/trace.c
parent5bb241b325d7d91bc4ec0b394f31dffb17fe7978 (diff)
parent115e8a288252ef748f34f8b7c1115c563d702eda (diff)
downloadkernel-crypto-4187e7e9f1294afdcb3be5d00aa74412a1c2ded8.tar.gz
kernel-crypto-4187e7e9f1294afdcb3be5d00aa74412a1c2ded8.tar.xz
kernel-crypto-4187e7e9f1294afdcb3be5d00aa74412a1c2ded8.zip
Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: modules, tracing: Remove stale struct marker signature from module_layout() tracing/workqueue: Use %pf in workqueue trace events tracing: Fix a comment and a trivial format issue in tracepoint.h tracing: Fix failure path in ftrace_regex_open() tracing: Fix failure path in ftrace_graph_write() tracing: Check the return value of trace_get_user() tracing: Fix off-by-one in trace_get_user()
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 411af37f4be..45068269ebb 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -415,7 +415,7 @@ int trace_get_user(struct trace_parser *parser, const char __user *ubuf,
/* read the non-space input */
while (cnt && !isspace(ch)) {
- if (parser->idx < parser->size)
+ if (parser->idx < parser->size - 1)
parser->buffer[parser->idx++] = ch;
else {
ret = -EINVAL;