]> git.ipfire.org Git - thirdparty/linux.git/commit
binder: Use seq_buf in binder_alloc kunit tests
authorTiffany Yang <ynaffit@google.com>
Tue, 22 Jul 2025 23:45:07 +0000 (16:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 09:42:43 +0000 (11:42 +0200)
commitfa3f79e82dce7b04f7b8cf1791268a775b3d6f9f
tree6c6bee05247a4724feda98b75dbd965703cb0ec1
parent8a8d47e86cf537e6f6deb5c736bbf948a7bbc885
binder: Use seq_buf in binder_alloc kunit tests

Replace instances of snprintf with seq_buf functions, as suggested by
Kees [1].

[1] https://lore.kernel.org/all/202507160743.15E8044@keescook/

Fixes: d1934ed9803c ("binder: encapsulate individual alloc test cases")
Suggested-by: Kees Cook <kees@kernel.org>
Cc: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Tiffany Yang <ynaffit@google.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://lore.kernel.org/r/20250722234508.232228-2-ynaffit@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/tests/binder_alloc_kunit.c