binder: add spinlock to protect binder_node
authorTodd Kjos <tkjos@android.com>
Thu, 29 Jun 2017 19:02:03 +0000 (12:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 12:48:24 +0000 (14:48 +0200)
commit673068eee8560d57e0b37bbb52157811b7f5b563
treebbb46ba7a8f9d90ee1824456cd579bc5661e179a
parent72196393a5e3d28c21679e3b745c06dd4a5b24c9
binder: add spinlock to protect binder_node

node->node_lock is used to protect elements of node. No
need to acquire for fields that are invariant: debug_id,
ptr, cookie.

Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c