]> git.baikalelectronics.ru Git - kernel.git/commit
binder: use group leader instead of open thread
authorTodd Kjos <tkjos@android.com>
Thu, 29 Jun 2017 19:01:36 +0000 (12:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 12:44:19 +0000 (14:44 +0200)
commit728274dc8985913005c292a5cae2811fad65f70a
tree5cfe300d999b4f73470931423fb439a20a089caa
parent1ff4cf16653f18b2f384cae4219fd35388d4b193
binder: use group leader instead of open thread

The binder allocator assumes that the thread that
called binder_open will never die for the lifetime of
that proc. That thread is normally the group_leader,
however it may not be. Use the group_leader instead
of current.

Signed-off-by: Todd Kjos <tkjos@google.com>
Cc: stable <stable@vger.kernel.org> # 4.4+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c