tracing/ftrace: fix unexpected -EINVAL when longest tracer name is set
authorFrederic Weisbecker <fweisbec@gmail.com>
Sun, 16 Nov 2008 04:53:19 +0000 (05:53 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Nov 2008 06:53:39 +0000 (07:53 +0100)
commite6e7a65aabdb696cf05a56cfd495c49a11fd4cde
treee73e423314b49ebc861ef5e7547ad97493a5e179
parentee02a2e5c88ca2e4d6921f08d037b46d5bf82641
tracing/ftrace: fix unexpected -EINVAL when longest tracer name is set

Impact: fix confusing write() -EINVAL when changing the tracer

The following commit d9e540762f5cdd89f24e518ad1fd31142d0b9726 remade
alive the bug which made the set of a new tracer returning -EINVAL if
this is the longest name of tracer. This patch corrects it.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c