]> Pileus Git - ~andy/linux/blobdiff - kernel/trace/trace.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
[~andy/linux] / kernel / trace / trace.c
index 411af37f4be4755b2bb1670d7cef18d16fc39c94..c820b0310a1274dee072c2e5403375033d2ca475 100644 (file)
@@ -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;
@@ -1393,7 +1393,7 @@ int trace_array_vprintk(struct trace_array *tr,
 
 int trace_vprintk(unsigned long ip, const char *fmt, va_list args)
 {
-       return trace_array_printk(&global_trace, ip, fmt, args);
+       return trace_array_vprintk(&global_trace, ip, fmt, args);
 }
 EXPORT_SYMBOL_GPL(trace_vprintk);