Commit 166beccd authored by Eric Anholt's avatar Eric Anholt Committed by Greg Kroah-Hartman

staging/vchi: Convert to current get_user_pages() arguments.

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1001354c
...@@ -420,7 +420,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type, ...@@ -420,7 +420,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type,
*need_release = 0; /* do not try and release vmalloc pages */ *need_release = 0; /* do not try and release vmalloc pages */
} else { } else {
down_read(&task->mm->mmap_sem); down_read(&task->mm->mmap_sem);
actual_pages = get_user_pages(task, task->mm, actual_pages = get_user_pages(
(unsigned long)buf & ~(PAGE_SIZE - 1), (unsigned long)buf & ~(PAGE_SIZE - 1),
num_pages, num_pages,
(type == PAGELIST_READ) /*Write */ , (type == PAGELIST_READ) /*Write */ ,
......
...@@ -1473,8 +1473,7 @@ dump_phys_mem(void *virt_addr, uint32_t num_bytes) ...@@ -1473,8 +1473,7 @@ dump_phys_mem(void *virt_addr, uint32_t num_bytes)
} }
down_read(&current->mm->mmap_sem); down_read(&current->mm->mmap_sem);
rc = get_user_pages(current, /* task */ rc = get_user_pages(
current->mm, /* mm */
(unsigned long)virt_addr, /* start */ (unsigned long)virt_addr, /* start */
num_pages, /* len */ num_pages, /* len */
0, /* write */ 0, /* write */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment