projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm/gup: change GUP fast to use flags rather than a write 'bool'
[linux-2.6-microblaze.git]
/
drivers
/
rapidio
/
devices
/
rio_mport_cdev.c
diff --git
a/drivers/rapidio/devices/rio_mport_cdev.c
b/drivers/rapidio/devices/rio_mport_cdev.c
index
1e1f42e
..
4a4a75f
100644
(file)
--- a/
drivers/rapidio/devices/rio_mport_cdev.c
+++ b/
drivers/rapidio/devices/rio_mport_cdev.c
@@
-868,7
+868,9
@@
rio_dma_transfer(struct file *filp, u32 transfer_mode,
pinned = get_user_pages_fast(
(unsigned long)xfer->loc_addr & PAGE_MASK,
- nr_pages, dir == DMA_FROM_DEVICE, page_list);
+ nr_pages,
+ dir == DMA_FROM_DEVICE ? FOLL_WRITE : 0,
+ page_list);
if (pinned != nr_pages) {
if (pinned < 0) {