futex: pass nr_wake2 to futex_wake_op
commit04a603a7e20124d3f2fed85a4dfda07cf2216268
authorAndreas Schwab <schwab@suse.de>
Tue, 31 Jul 2007 07:38:51 +0000 (31 00:38 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:36 +0000 (9 14:27 -0700)
treede7e95a721427ca7ccab373945c685a303abc5e9
parent6c264a326f471cad27ee7e275f1b425a307c55f0
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/futex.c