diff options
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index f7488f44d26b..cacb6f083ecb 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -739,7 +739,7 @@ __acquires(kernel_lock) | |||
739 | return -1; | 739 | return -1; |
740 | } | 740 | } |
741 | 741 | ||
742 | if (strlen(type->name) > MAX_TRACER_SIZE) { | 742 | if (strlen(type->name) >= MAX_TRACER_SIZE) { |
743 | pr_info("Tracer has a name longer than %d\n", MAX_TRACER_SIZE); | 743 | pr_info("Tracer has a name longer than %d\n", MAX_TRACER_SIZE); |
744 | return -1; | 744 | return -1; |
745 | } | 745 | } |