binder: fix death race conditions
authorMartijn Coenen <maco@google.com>
Thu, 29 Jun 2017 19:02:10 +0000 (12:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 12:48:24 +0000 (14:48 +0200)
commitab51ec6bdf0b7afc087470a62f273ad35f6ee506
treeab9156434c7d017f96ef45722b57aed382fddba1
parent5f2f63696c552081bc90fb0ef80c94def33ba421
binder: fix death race conditions

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.

Signed-off-by: Martijn Coenen <maco@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c