Commit e6608162 authored by Arve Hjønnevåg's avatar Arve Hjønnevåg Committed by Jiri Slaby

staging: binder: Fix death notifications

commit e194fd8a upstream.

The change (008fa749) 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: default avatarArve Hjønnevåg <arve@android.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarJeremy Compostella <jeremy.compostella@intel.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent d57db0b6
......@@ -2903,7 +2903,7 @@ static int binder_node_release(struct binder_node *node, int refs)
refs++;
if (!ref->death)
goto out;
continue;
death++;
......@@ -2916,7 +2916,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment