aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-dma-sg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/videobuf-dma-sg.c')
-rw-r--r--drivers/media/video/videobuf-dma-sg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c
index 032ebae0134a..a583d394696e 100644
--- a/drivers/media/video/videobuf-dma-sg.c
+++ b/drivers/media/video/videobuf-dma-sg.c
@@ -588,7 +588,7 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q,
588 retval = -EBUSY; 588 retval = -EBUSY;
589 goto done; 589 goto done;
590 } 590 }
591 size += q->bufs[last]->bsize; 591 size += PAGE_ALIGN(q->bufs[last]->bsize);
592 if (size == (vma->vm_end - vma->vm_start)) 592 if (size == (vma->vm_end - vma->vm_start))
593 break; 593 break;
594 } 594 }
@@ -610,7 +610,7 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q,
610 continue; 610 continue;
611 q->bufs[i]->map = map; 611 q->bufs[i]->map = map;
612 q->bufs[i]->baddr = vma->vm_start + size; 612 q->bufs[i]->baddr = vma->vm_start + size;
613 size += q->bufs[i]->bsize; 613 size += PAGE_ALIGN(q->bufs[i]->bsize);
614 } 614 }
615 615
616 map->count = 1; 616 map->count = 1;