]> git.itanic.dy.fi Git - linux-stable/commit
futex: fix init order
authorThomas Gleixner <tglx@linutronix.de>
Sun, 24 Feb 2008 02:10:06 +0000 (02:10 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:18 +0000 (11:47 -0700)
commitc51d3bbd2c2256e2567984068bc0950b4ac73e49
treeb423f0f10db9a213d48ad6fd62a27d720f76ef33
parente08b12e87e90a96df9380e8b17424e939c9f3448
futex: fix init order

commit: 3e4ab747efa8e78562ec6782b08bbf21a00aba1b

When the futex init code fails to initialize the futex pseudo file system it
returns early without initializing the hash queues.  Should the boot succeed
then a futex syscall which tries to enqueue a waiter on the hashqueue will
crash due to the unitilialized plist heads.

Initialize the hash queues before the filesystem.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: Riku Voipio <riku.voipio@movial.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/futex.c