]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Fix strncmp operation
authorHillf Danton <dhillf@gmail.com>
Thu, 6 Jan 2011 12:58:12 +0000 (20:58 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 7 Jan 2011 14:55:10 +0000 (15:55 +0100)
commit4ace9632bffd02137eab8c096889a43998a219c6
tree00d0a06e864c0054cc6764f1afa6887e1281bcb6
parent545d8142ddc060f7b8c3edc62ed91888dd7d05ba
sched: Fix strncmp operation

One of the operands, buf, is incorrect, since it is stripped and the
correct address for subsequent string comparing could change if
leading white spaces, if any, are removed from buf.

It is fixed by replacing buf with cmp.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <AANLkTinOPuYsVovrZpbuCCmG5deEyc8WgA_A1RJx_YK7@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c