Re: [PATCH] media: vb2: add length check for mmap

2013-04-17 Thread 김승우
Oops, there is a issue. vb2-core does not PAGE_ALIGN to length of buffer, but mmap() always do PAGE_ALIGN to its length. So non PAGE_ALIGN length of buffer from driver side can not mmaped with this patch. On 2013년 04월 12일 15:03, Marek Szyprowski wrote: On 4/12/2013 5:57 AM, Seung-Woo Kim

Re: [PATCH] media: vb2: add length check for mmap

2013-04-16 Thread Laurent Pinchart
On Friday 12 April 2013 08:03:15 Marek Szyprowski wrote: On 4/12/2013 5:57 AM, Seung-Woo Kim wrote: The length of mmap() can be bigger than length of vb2 buffer, so it should be checked. Signed-off-by: Seung-Woo Kim sw0312@samsung.com Acked-by: Marek Szyprowski

Re: [PATCH] media: vb2: add length check for mmap

2013-04-12 Thread Marek Szyprowski
On 4/12/2013 5:57 AM, Seung-Woo Kim wrote: The length of mmap() can be bigger than length of vb2 buffer, so it should be checked. Signed-off-by: Seung-Woo Kim sw0312@samsung.com Acked-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/media/v4l2-core/videobuf2-core.c |5

[PATCH] media: vb2: add length check for mmap

2013-04-11 Thread Seung-Woo Kim
The length of mmap() can be bigger than length of vb2 buffer, so it should be checked. Signed-off-by: Seung-Woo Kim sw0312@samsung.com --- drivers/media/v4l2-core/videobuf2-core.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git