summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-23 00:22:05 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-23 05:14:36 +0200
commit8dcf932d541487307fc7388ebfad5955f5fae098 (patch)
treed07e787ab29ac66bee061e0ec7e2b454af78ba1e /drivers/video
parentatomisp: use get_user_pages_fast() (diff)
downloadlinux-8dcf932d541487307fc7388ebfad5955f5fae098.tar.xz
linux-8dcf932d541487307fc7388ebfad5955f5fae098.zip
pvr2fs: use get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/video')
-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;