Re: [PATCH v2] media: vb2: Fix videobuf2 to map correct area

2018-02-06 Thread Marek Szyprowski
Hi Masami, On 2018-02-06 09:02, Masami Hiramatsu wrote: Fixes vb2_vmalloc_get_userptr() to ioremap correct area. Since the current code does ioremap the page address, if the offset > 0, it does not do ioremap the last page and results in kernel panic. This fixes to pass the size + offset to ior

[PATCH v2] media: vb2: Fix videobuf2 to map correct area

2018-02-06 Thread Masami Hiramatsu
Fixes vb2_vmalloc_get_userptr() to ioremap correct area. Since the current code does ioremap the page address, if the offset > 0, it does not do ioremap the last page and results in kernel panic. This fixes to pass the size + offset to ioremap so that ioremap can map correct area. Also, this uses