FROMLIST: binder: protect binder_ref with outer lock
authorTodd Kjos <tkjos@google.com>
Thu, 20 Oct 2016 23:43:34 +0000 (16:43 -0700)
committerTodd Kjos <tkjos@google.com>
Thu, 13 Jul 2017 15:34:22 +0000 (08:34 -0700)
commit5346bf3a4104a2829f7974cfe9d08d75fd6cdea3
tree7ca3172d0647d9796e5bc33e627b77e04e40aebc
parentd600e9070ac5693474fce4bb772186c5d674fc29
FROMLIST: binder: protect binder_ref with outer lock

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

Use proc->outer_lock to protect the binder_ref structure.
The outer lock allows functions operating on the binder_ref
to do nested acquires of node and inner locks as necessary
to attach refs to nodes atomically.

Binder refs must never be accesssed without holding the
outer lock.

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