Staging: android: task_get_unused_fd_flags: fix the wrong usage of tsk->signal
authorOleg Nesterov <oleg@redhat.com>
Sun, 18 Jan 2009 17:17:20 +0000 (18:17 +0100)
committerGreg Kroah-Hartman <gregkh@kvm.kroah.org>
Wed, 28 Jan 2009 23:49:05 +0000 (15:49 -0800)
commit1176e83aff6f15b6ae4d1b53c16124884ad29363
treecc808cf2a4f9b6306277bab178f3f055d54765a6
parent191805ac41a63929003faa33365027d3fb924d71
Staging: android: task_get_unused_fd_flags: fix the wrong usage of tsk->signal

Compile tested.

task_struct->signal is not protected by RCU, the code is bogus.
Change the code to take ->siglock to pin ->signal.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/binder.c