mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9e2aa76549
commit
978ce3ed70
@@ -353,7 +353,6 @@ static int binder_install_single_page(struct binder_alloc *alloc,
|
||||
binder_free_page(page);
|
||||
pr_err("%d: %s failed to insert page at offset %lx with %d\n",
|
||||
alloc->pid, __func__, addr - alloc->vm_start, ret);
|
||||
ret = -ENOMEM;
|
||||
break;
|
||||
}
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user