[media] videobuf-dma-contig: fix incorrect argument to vm_iomap_memory() call
authorMa Haijun <mahaijuns@gmail.com>
Thu, 27 Mar 2014 11:07:06 +0000 (08:07 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 15:54:09 +0000 (12:54 -0300)
The second argument should be physical address rather than virtual address.

Signed-off-by: Ma Haijun <mahaijuns@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf-dma-contig.c

index 7e6b209b7002da88979a46f0edff9c2f39a62738..bf80f0f7dfb853ab367887fb76cfc1d0be6c907e 100644 (file)
@@ -305,7 +305,7 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q,
        /* Try to remap memory */
        size = vma->vm_end - vma->vm_start;
        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) {
                dev_err(q->dev, "mmap: remap failed with error %d. ",
                        retval);