aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index a9f5e137f1d3..4172bfee0f1a 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1580,9 +1580,9 @@ static int fuse_ioctl_copy_user(struct page **pages, struct iovec *iov,
1580 while (iov_iter_count(&ii)) { 1580 while (iov_iter_count(&ii)) {
1581 struct page *page = pages[page_idx++]; 1581 struct page *page = pages[page_idx++];
1582 size_t todo = min_t(size_t, PAGE_SIZE, iov_iter_count(&ii)); 1582 size_t todo = min_t(size_t, PAGE_SIZE, iov_iter_count(&ii));
1583 void *kaddr, *map; 1583 void *kaddr;
1584 1584
1585 kaddr = map = kmap(page); 1585 kaddr = kmap(page);
1586 1586
1587 while (todo) { 1587 while (todo) {
1588 char __user *uaddr = ii.iov->iov_base + ii.iov_offset; 1588 char __user *uaddr = ii.iov->iov_base + ii.iov_offset;