ANDROID: binder: don't enqueue death notifications to thread todo.
authorMartijn Coenen <maco@android.com>
Thu, 10 Aug 2017 11:50:52 +0000 (13:50 +0200)
committerDanny Wood <danwood76@gmail.com>
Tue, 26 Feb 2019 16:35:31 +0000 (16:35 +0000)
commitbd3a2956980486c15e147e384f81ebdad42c3828
tree9dfc2e0e40dd43282a82ce41f668668992a48b7c
parent21ad255da3efac3e38ab3f970b27cb4a68747b7b
ANDROID: binder: don't enqueue death notifications to thread todo.

This allows userspace to request death notifications without
having to worry about getting an immediate callback on the same
thread; one scenario where this would be problematic is if the
death recipient handler grabs a lock that was already taken
earlier (eg as part of a nested transaction).

Bug: 23525545
Test: binderLibTest.DeathNotificationThread passes
Change-Id: I955e16306fe3110dacb9a391ffff1bf869249495
Signed-off-by: Martijn Coenen <maco@android.com>
drivers/android/binder.c