summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorCarlos Llamas <cmllamas@google.com>2026-01-23 20:57:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-11 15:39:09 +0300
commitebb6aa6928d5cafd1c12e335ddb2bf05de008631 (patch)
treec6020b826805b8d1724dd117463fd9d903c7ee23 /drivers
parent9f6022b2573ae068793810db719e131df3ded405 (diff)
downloadlinux-ebb6aa6928d5cafd1c12e335ddb2bf05de008631.tar.xz
binder: fix BR_FROZEN_REPLY error log
commit 1769f90e5ba2a6d24bb46b85da33fe861c68f005 upstream. The error logging for failed transactions is misleading as it always reports "dead process or thread" even when the target is actually frozen. Additionally, the pid and tid are reversed which can further confuse debugging efforts. Fix both issues. Cc: stable@kernel.org Cc: Steven Moreland <smoreland@google.com> Fixes: a15dac8b2286 ("binder: additional transaction error logs") Signed-off-by: Carlos Llamas <cmllamas@google.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20260123175702.2154348-1-cmllamas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/android/binder.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index e5096fcfad57..43f11f66970b 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -3663,8 +3663,9 @@ static void binder_transaction(struct binder_proc *proc,
return;
err_dead_proc_or_thread:
- binder_txn_error("%d:%d dead process or thread\n",
- thread->pid, proc->pid);
+ binder_txn_error("%d:%d %s process or thread\n",
+ proc->pid, thread->pid,
+ return_error == BR_FROZEN_REPLY ? "frozen" : "dead");
return_error_line = __LINE__;
binder_dequeue_work(proc, tcomplete);
err_translate_failed: