mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
staging: binder: Fix death notifications
commite194fd8a5dupstream. The change (008fa749e0) that moved the node release code to a separate function broke death notifications in some cases. When it encountered a reference without a death notification request, it would skip looking at the remaining references, and therefore fail to send death notifications for them. Cc: Colin Cross <ccross@android.com> Cc: Android Kernel Team <kernel-team@android.com> Signed-off-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4403be9e25
commit
b3a59abff4
|
|
@ -2902,7 +2902,7 @@ static int binder_node_release(struct binder_node *node, int refs)
|
|||
refs++;
|
||||
|
||||
if (!ref->death)
|
||||
goto out;
|
||||
continue;
|
||||
|
||||
death++;
|
||||
|
||||
|
|
@ -2915,7 +2915,6 @@ static int binder_node_release(struct binder_node *node, int refs)
|
|||
BUG();
|
||||
}
|
||||
|
||||
out:
|
||||
binder_debug(BINDER_DEBUG_DEAD_BINDER,
|
||||
"node %d now dead, refs %d, death %d\n",
|
||||
node->debug_id, refs, death);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user