Commit 29f1cdb0 authored by Ma Haijun's avatar Ma Haijun Committed by Mauro Carvalho Chehab

[media] videobuf-dma-contig: fix incorrect argument to vm_iomap_memory() call

The second argument should be physical address rather than virtual address.
Signed-off-by: default avatarMa Haijun <mahaijuns@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent deb29e90
...@@ -305,7 +305,7 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q, ...@@ -305,7 +305,7 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q,
/* Try to remap memory */ /* Try to remap memory */
size = vma->vm_end - vma->vm_start; size = vma->vm_end - vma->vm_start;
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
retval = vm_iomap_memory(vma, vma->vm_start, size); retval = vm_iomap_memory(vma, mem->dma_handle, size);
if (retval) { if (retval) {
dev_err(q->dev, "mmap: remap failed with error %d. ", dev_err(q->dev, "mmap: remap failed with error %d. ",
retval); retval);
......
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