Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1aaa09ca authored by Al Viro's avatar Al Viro
Browse files

fsl_hypervisor: switch to get_user_pages_fast()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0ca36a6b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));

	/* Get the physical addresses of the source buffer */
	num_pinned = get_user_pages_unlocked(param.local_vaddr - lb_offset,
		num_pages, pages, (param.source == -1) ? 0 : FOLL_WRITE);
	num_pinned = get_user_pages_fast(param.local_vaddr - lb_offset,
		num_pages, param.source != -1, pages);

	if (num_pinned != num_pages) {
		/* get_user_pages() failed */