summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-22 18:22:05 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-22 23:14:36 -0400
commit8dcf932d541487307fc7388ebfad5955f5fae098 (patch)
treed07e787ab29ac66bee061e0ec7e2b454af78ba1e
parente1a58a5421c6a9f4ab74810d6ecbbdb6b1b2e2c7 (diff)
pvr2fs: use get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--drivers/video/fbdev/pvr2fb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c
index 867c5218968f..a582d3ae7ac1 100644
--- a/drivers/video/fbdev/pvr2fb.c
+++ b/drivers/video/fbdev/pvr2fb.c
@@ -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;