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)
commitc4ea41ba195d01c9af66fb28711a16cc97caa9c5
tree5cfe300d999b4f73470931423fb439a20a089caa
parenta2b18708ee14baec4ef9c0fba96070bba14d0081
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