Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367056
b: refs/heads/master
c: 068a0df
h: refs/heads/master
v: v3
  • Loading branch information
Seung-Woo Kim authored and Mauro Carvalho Chehab committed Apr 15, 2013
1 parent 4a81488 commit 2654a8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27a0aacf3ee4e7f91b95d69c954a6ba6540a5c0a
refs/heads/master: 068a0df76023926af958a336a78bef60468d2033
5 changes: 5 additions & 0 deletions trunk/drivers/media/v4l2-core/videobuf2-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,11 @@ int vb2_mmap(struct vb2_queue *q, struct vm_area_struct *vma)

vb = q->bufs[buffer];

if (vb->v4l2_planes[plane].length < (vma->vm_end - vma->vm_start)) {
dprintk(1, "Invalid length\n");
return -EINVAL;
}

ret = call_memop(q, mmap, vb->planes[plane].mem_priv, vma);
if (ret)
return ret;
Expand Down

0 comments on commit 2654a8b

Please sign in to comment.