]> git.karo-electronics.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 18:47:30 +0000 (10:47 -0800)
commitebf7608d15a8029ede4b186ba5ec891d0ecfd716
tree1ca13f5b1c2e077be20c0f91a86750ae02d1cc20
parentf055e6dfa6162006a79fee50a1893ff610d5a633
sched: Fix string comparison in /proc/sched_features

commit 7740191cd909b75d75685fb08a5d1f54b8a9d28b upstream.

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: Peter Zijlstra <peterz@infradead.org>
Cc: Tony Lindgren <tony@atomide.com>
LKML-Reference: <20100913214700.GB16118@Krystal>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/sched.c