]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sched: Fix string comparison in /proc/sched_features
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Sep 2010 21:47:00 +0000 (17:47 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Sep 2010 11:23:45 +0000 (13:23 +0200)
commit7740191cd909b75d75685fb08a5d1f54b8a9d28b
tree6a45de73bc9958d46b638d9e031a2be85568f0a4
parent637bbdc5b83615ef9f45f50399d1c7f27473c713
sched: Fix string comparison in /proc/sched_features

Fix incorrect handling of the following case:

 INTERACTIVE
 INTERACTIVE_SOMETHING_ELSE

The comparison only checks up to each element's length.

Changelog since v1:
 - Embellish using some Rostedtisms.
  [ mingo:                 ^^ == smaller and cleaner ]

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Cc: <stable@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tony Lindgren <tony@atomide.com>
LKML-Reference: <20100913214700.GB16118@Krystal>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c