mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
Staging: android: binder: Fix death notifications
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.
Change-Id: I12083a50709ccc30ba11a5f4d9eeb5f0ff4471c6
Signed-off-by: Arve Hjønnevåg <arve@android.com>
This commit is contained in:
@@ -2941,7 +2941,7 @@ static int binder_node_release(struct binder_node *node, int refs)
|
||||
refs++;
|
||||
|
||||
if (!ref->death)
|
||||
goto out;
|
||||
continue;
|
||||
|
||||
death++;
|
||||
|
||||
@@ -2954,7 +2954,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);
|
||||
|
||||
Reference in New Issue
Block a user