aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/android/binder_alloc_selftest.c
diff options
context:
space:
mode:
authorCarlos Llamas <[email protected]>2023-12-01 17:21:40 +0000
committerGreg Kroah-Hartman <[email protected]>2023-12-05 00:23:39 +0000
commit377e1684db7a1e23261f3c3ebf76523c0554d512 (patch)
treef49b6c132133c8171852ee2686f9fad8065fad13 /drivers/android/binder_alloc_selftest.c
parentbinder: split up binder_update_page_range() (diff)
downloadkernel-377e1684db7a1e23261f3c3ebf76523c0554d512.tar.gz
kernel-377e1684db7a1e23261f3c3ebf76523c0554d512.zip
binder: do unlocked work in binder_alloc_new_buf()
Extract non-critical sections from binder_alloc_new_buf_locked() that don't require holding the alloc->mutex. While we are here, consolidate the checks for size overflow and zero-sized padding into a separate sanitized_size() helper function. Also add a few touchups to follow the coding guidelines. Signed-off-by: Carlos Llamas <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/android/binder_alloc_selftest.c')
0 files changed, 0 insertions, 0 deletions