fsl_hypervisor: switch to get_user_pages_fast()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2017-01-30 02:45:08 -05:00
parent 0ca36a6bbd
commit 1aaa09caed
1 changed files with 2 additions and 2 deletions

View File

@ -243,8 +243,8 @@ static long ioctl_memcpy(struct fsl_hv_ioctl_memcpy __user *p)
sg_list = PTR_ALIGN(sg_list_unaligned, sizeof(struct fh_sg_list)); sg_list = PTR_ALIGN(sg_list_unaligned, sizeof(struct fh_sg_list));
/* Get the physical addresses of the source buffer */ /* Get the physical addresses of the source buffer */
num_pinned = get_user_pages_unlocked(param.local_vaddr - lb_offset, num_pinned = get_user_pages_fast(param.local_vaddr - lb_offset,
num_pages, pages, (param.source == -1) ? 0 : FOLL_WRITE); num_pages, param.source != -1, pages);
if (num_pinned != num_pages) { if (num_pinned != num_pages) {
/* get_user_pages() failed */ /* get_user_pages() failed */