summaryrefslogtreecommitdiff
path: root/drivers/char/nvmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/nvmap.c')
-rw-r--r--drivers/char/nvmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/nvmap.c b/drivers/char/nvmap.c
index 2391d1803dd1..6816d478cfd0 100644
--- a/drivers/char/nvmap.c
+++ b/drivers/char/nvmap.c
@@ -2434,8 +2434,8 @@ static ssize_t _nvmap_do_rw_handle(struct nvmap_handle *h, int is_read,
}
bytes_copied += ret;
if (ret < elem_size) break;
- sys_addr += elem_size;
- h_offs += elem_size;
+ sys_addr += sys_stride;
+ h_offs += h_stride;
}
if (addr) nvmap_unmap_pte(addr);