ANDROID: fix up 60500a4228 ("ANDROID: mm: add a field to store names for private anonymous memory")

In the mainline commit 64019a2e46 ("mm/gup: remove task_struct pointer
for all gup code"), get_user_pages_remote() removed a parameter, which
broke the build in the fs/proc/task_mmu.c file due to the previously
mentioned android-only change.

Fix this up by correcting the parameters for this call.

Bug: 120441514
Cc: Dmitry Shmidt <dimitrysh@google.com>
Cc: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I753c22c298d0397b625daf28fe89182e074ac540
This commit is contained in:
Greg Kroah-Hartman
2020-08-13 09:51:51 +02:00
parent 418b4bd4a0
commit b5c8a97d50

View File

@@ -147,8 +147,8 @@ static void seq_print_vma_name(struct seq_file *m, struct vm_area_struct *vma)
long pages_pinned;
struct page *page;
pages_pinned = get_user_pages_remote(current, mm,
page_start_vaddr, 1, 0, &page, NULL, NULL);
pages_pinned = get_user_pages_remote(mm, page_start_vaddr, 1, 0,
&page, NULL, NULL);
if (pages_pinned < 1) {
seq_puts(m, "<fault>]");
return;