]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
FUTEX: Restore the dropped ERSCH fix
authorThomas Gleixner <tglx@linutronix.de>
Sat, 23 Jun 2007 09:48:40 +0000 (11:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 4 Aug 2007 16:10:25 +0000 (09:10 -0700)
commit8e9a9197b255bbbed3e674a5d1e6b6516c1f027b
treef6c2e4b35e49b23a758e76aef42625e5f8abc8e0
parentcdd2bd2e66111c075f2fe917e206ccb2835f9359
FUTEX: Restore the dropped ERSCH fix

The return value of futex_find_get_task() needs to be -ESRCH in case
that the search fails. This was part of the original futex fixes and
got accidentally dropped, when the futex-tidy-up patch was split out.

Results in a NULL pointer dereference in case the search fails.

Restore it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Ulrich Drepper <drepper@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/futex.c