projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1a58a5
)
pvr2fs: use get_user_pages_fast()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 22 Sep 2017 22:22:05 +0000
(18:22 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 23 Sep 2017 03:14:36 +0000
(23:14 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/video/fbdev/pvr2fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/pvr2fb.c
b/drivers/video/fbdev/pvr2fb.c
index
867c521
..
a582d3a
100644
(file)
--- 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;