]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
binder: pre-allocate binder_transaction
authorCarlos Llamas <cmllamas@google.com>
Sun, 27 Jul 2025 18:29:04 +0000 (18:29 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Aug 2025 10:53:01 +0000 (12:53 +0200)
commit4afc5bf0a1849f0ed3ea1d9fd9d0e79b23a67f96
tree57ab1e9b40c127cc61e5ea28ad32ce30e40843e3
parentbb7aa579efd68c905159b03b255d1437f9f4201b
binder: pre-allocate binder_transaction

Move the allocation of 'struct binder_transaction' to the beginning of
the binder_transaction() function, along with the initialization of all
the members that are known at that time. This minor refactoring helps to
consolidate the usage of transaction information at later points.

This patch is in preparation for binder's generic netlink implementation
and no functional changes are intended.

Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20250727182932.2499194-2-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c