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

Commit 8dcf932d authored by Al Viro's avatar Al Viro
Browse files

pvr2fs: use get_user_pages_fast()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e1a58a54
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -686,9 +686,7 @@ static ssize_t pvr2fb_write(struct fb_info *info, const char *buf,
	if (!pages)
		return -ENOMEM;

	ret = get_user_pages_unlocked((unsigned long)buf, nr_pages, pages,
			FOLL_WRITE);

	ret = get_user_pages_fast((unsigned long)buf, nr_pages, true, pages);
	if (ret < nr_pages) {
		nr_pages = ret;
		ret = -EINVAL;