Skip to content

Commit 4df29fb

Browse files
Darksonngregkh
authored andcommitted
rust_binder: return p from rust_binder_transaction_target_node()
Somehow this got changed to NULL when I ported this to upstream it. No idea how that happened. Reported-by: Carlos Llamas <cmllamas@google.com> Closes: https://lore.kernel.org/r/aXkEiC1sGOGfDuzI@google.com Fixes: c1ea312 ("rust_binder: add binder_transaction tracepoint") Signed-off-by: Alice Ryhl <aliceryhl@google.com> Acked-by: Carlos Llamas <cmllamas@google.com> Link: https://patch.msgid.link/20260128-binder-fix-target-node-null-v1-1-78d198ef55a5@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9caa30d commit 4df29fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/android/binder/rust_binder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static inline rust_binder_node rust_binder_transaction_target_node(rust_binder_t
7979

8080
if (p)
8181
p = p + RUST_BINDER_LAYOUT.n.arc_offset;
82-
return NULL;
82+
return p;
8383
}
8484

8585
static inline rust_binder_process rust_binder_transaction_to_proc(rust_binder_transaction t)

0 commit comments

Comments
 (0)