]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] FUTEX: Restore the dropped ERSCH fix
authorThomas Gleixner <tglx@linutronix.de>
Sat, 23 Jun 2007 09:48:40 +0000 (11:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Aug 2007 08:02:31 +0000 (10:02 +0200)
commitea317f3c75a3ff7316d6abbcfa661df277cf4d98
tree15f655da1ddec1f6a30c4e09c36dea843364a13c
parent103f048b6f30360d3251c670b0a6714282ceb2c6
[PATCH] 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