From: Mauro Carvalho Chehab Date: Fri, 19 Apr 2013 10:18:01 +0000 (-0300) Subject: [media] media: videobuf2: fix the length check for mmap X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~104^2^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f8414594e4755234fd0ca415630cfe2dfab42ce;p=pandora-kernel.git [media] media: videobuf2: fix the length check for mmap Memory maps typically require that the buffer size to be page aligned. Currently, two memops drivers do such alignment internally, but videobuf-vmalloc doesn't. Also, the buffer overflow check doesn't take it into account. So, instead of doing it at each memops driver, enforce it at VB2 core. Reported-by: Prabhakar lad Acked-by: Laurent Pinchart Acked-by: Marek Szyprowski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed