binder: Fix selftest page indexing
authorTiffany Yang <ynaffit@google.com>
Mon, 14 Jul 2025 18:53:14 +0000 (11:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 12:11:58 +0000 (14:11 +0200)
commitbea3e7bfa2957d986683543cbf57092715f9a91b
treeda5a7dd38339c0449cf3b80f4fb3440c01ab5c10
parent01afddcac630b8c6a5f44ac5d0e508ca440e44a2
binder: Fix selftest page indexing

The binder allocator selftest was only checking the last page of buffers
that ended on a page boundary. Correct the page indexing to account for
buffers that are not page-aligned.

Signed-off-by: Tiffany Yang <ynaffit@google.com>
Acked-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20250714185321.2417234-2-ynaffit@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_alloc_selftest.c