]> git.baikalelectronics.ru Git - kernel.git/commit
futex: pass nr_wake2 to futex_wake_op
authorAndreas Schwab <schwab@suse.de>
Tue, 31 Jul 2007 07:38:51 +0000 (00:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:40 +0000 (15:39 -0700)
commit17592c774e899e72e678b33429474d1bf8e161a7
tree22c18dd521e6a182647ad8304ab28434060f0c8c
parent8f35f8653268f1cac1c1a6eba8d6460b589404ea
futex: pass nr_wake2 to futex_wake_op

The fourth argument of sys_futex is ignored when op == FUTEX_WAKE_OP,
but futex_wake_op expects it as its nr_wake2 parameter.

The only user of this operation in glibc is always passing 1, so this
bug had no consequences so far.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Ulrich Drepper <drepper@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/futex.c