OSDN Git Service

binder: use group leader instead of open thread
authorMartijn Coenen <maco@android.com>
Tue, 7 Mar 2017 14:51:18 +0000 (15:51 +0100)
committerMartijn Coenen <maco@android.com>
Tue, 7 Mar 2017 15:09:17 +0000 (16:09 +0100)
commit359795138dc5440e09c58025e28ec1b38d648c09
treebac3be63217e1d4c828b155c4b5c23ad4d77e17c
parent33af4c0c5faa2ae101db8701d1000512a27dfdb7
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.

Bug: 35707103
Test: Created test case to open with temporary thread

Change-Id: Id693f74b3591f3524a8c6e9508e70f3e5a80c588
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Martijn Coenen <maco@android.com>
drivers/android/binder.c