binder: propagate vm_insert_page() errors
authorCarlos Llamas <cmllamas@google.com>
Tue, 10 Dec 2024 14:31:04 +0000 (14:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Dec 2024 08:35:23 +0000 (09:35 +0100)
commit978ce3ed703db86344e1df718ea0f56ec7d4dae1
tree72f255b438dc818c3f984052924c2774cd6318bb
parent9e2aa76549b9fd2b8f7b81260417a4ec853910e6
binder: propagate vm_insert_page() errors

Instead of always overriding errors with -ENOMEM, propagate the specific
error code returned by vm_insert_page(). This allows for more accurate
error logs and handling.

Cc: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20241210143114.661252-9-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_alloc.c