Commit 98bded82 authored by Russell King's avatar Russell King

[ARM] Fix dma_mmap() size argument.

We were passing the size of the region in pages, where as
remap_pfn_range expected the size in bytes.
Signed-off-by: default avatarRussell King <rmk@arm.linux.org.uk>
parent 8672a651
......@@ -293,7 +293,8 @@ static int dma_mmap(struct device *dev, struct vm_area_struct *vma,
vma->vm_flags |= VM_RESERVED;
ret = remap_pfn_range(vma, vma->vm_start,
page_to_pfn(c->vm_pages) + off,
user_size, vma->vm_page_prot);
user_size << PAGE_SHIFT,
vma->vm_page_prot);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment