diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-23 01:22:05 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-23 06:14:36 +0300 |
commit | 8dcf932d541487307fc7388ebfad5955f5fae098 (patch) | |
tree | d07e787ab29ac66bee061e0ec7e2b454af78ba1e /drivers/video/fbdev | |
parent | e1a58a5421c6a9f4ab74810d6ecbbdb6b1b2e2c7 (diff) | |
download | linux-8dcf932d541487307fc7388ebfad5955f5fae098.tar.xz |
pvr2fs: use get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r-- | drivers/video/fbdev/pvr2fb.c | 4 |
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; |