]> git.ipfire.org Git - thirdparty/linux.git/commit
rust_binder: refactor context management to use KVVec
authorJason Hall <jason.kei.hall@gmail.com>
Tue, 20 Jan 2026 13:41:19 +0000 (06:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Jan 2026 15:18:41 +0000 (16:18 +0100)
commitb7f42b0cfb94d4cc96371ef77c4ecffbc1c02ac2
tree41a9643b7c8c3ba80c7806c245fc4d27176fef7f
parenta8a6d9b4da001a84dd715d92f034d2bf777199c8
rust_binder: refactor context management to use KVVec

Replace the linked list management in context.rs with KVVec.
This simplifies the ownership model by using standard
Arc-based tracking and moves away from manual unsafe list removals.

The refactor improves memory safety by leveraging Rust's contiguous
collection types while maintaining proper error propagation for
allocation failures during process registration.

Suggested-by: Alice Ryhl <aliceryhl@google.com>
Link: https://github.com/rust-for-linux/linux/issues/1215
Signed-off-by: Jason Hall <jason.kei.hall@gmail.com>
Link: https://patch.msgid.link/20260120134119.98048-1-jason.kei.hall@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder/context.rs
drivers/android/binder/process.rs