diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index f7488f44d26babd796d8b0fd5079d4eaeb8206a5..cacb6f083ecb94498efefcd20d86d6632397ae0f 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -739,7 +739,7 @@ __acquires(kernel_lock) return -1; } - if (strlen(type->name) > MAX_TRACER_SIZE) { + if (strlen(type->name) >= MAX_TRACER_SIZE) { pr_info("Tracer has a name longer than %d\n", MAX_TRACER_SIZE); return -1; }