BACKPORT: 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> Bug: 451083029 Bug: 410746221 (cherry picked from commit 978ce3ed703db86344e1df718ea0f56ec7d4dae1) Change-Id: Ie43287aa091f2a6b05f8f9f1b3aea6e699b88455 [cmllamas: resolved trivial merge conflicts] Signed-off-by: Carlos Llamas <cmllamas@google.com>
This commit is contained in:
@@ -354,7 +354,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->buffer, ret);
|
||||
ret = -ENOMEM;
|
||||
break;
|
||||
}
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user