FROMLIST: binder: fix death race conditions
authorMartijn Coenen <maco@google.com>
Mon, 22 May 2017 18:26:23 +0000 (11:26 -0700)
committerTodd Kjos <tkjos@google.com>
Thu, 13 Jul 2017 15:34:22 +0000 (08:34 -0700)
commitf9eac6479d17915560bc1c67d5eefeac2ffc4482
treed6e710f2334a8f48e11e38370044355047c08eb0
parent6d241a4bce4a388dc0de6962d7845a18c1a15124
FROMLIST: binder: fix death race conditions

(from https://patchwork.kernel.org/patch/9817765/)

A race existed where one thread could register
a death notification for a node, while another
thread was cleaning up that node and sending
out death notifications for its references,
causing simultaneous access to ref->death
because different locks were held.

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