Skip to content

Commit e194fd8

Browse files
arve-androidgregkh
authored andcommitted
staging: binder: Fix death notifications
The change (008fa74) 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> Cc: stable <stable@vger.kernel.org> # 3.10 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>
1 parent 6d0abec commit e194fd8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/staging/android/binder.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2904,7 +2904,7 @@ static int binder_node_release(struct binder_node *node, int refs)
29042904
refs++;
29052905

29062906
if (!ref->death)
2907-
goto out;
2907+
continue;
29082908

29092909
death++;
29102910

@@ -2917,7 +2917,6 @@ static int binder_node_release(struct binder_node *node, int refs)
29172917
BUG();
29182918
}
29192919

2920-
out:
29212920
binder_debug(BINDER_DEBUG_DEAD_BINDER,
29222921
"node %d now dead, refs %d, death %d\n",
29232922
node->debug_id, refs, death);

0 commit comments

Comments
 (0)