[media] media: vb2: add length check for mmap
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 12 Apr 2013 02:57:57 +0000 (23:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 15 Apr 2013 01:37:26 +0000 (22:37 -0300)
commit068a0df76023926af958a336a78bef60468d2033
tree63d57cb1b0851deaea9ce55981baf095c9d15fca
parent27a0aacf3ee4e7f91b95d69c954a6ba6540a5c0a
[media] media: vb2: add length check for mmap

The length of mmap() can be bigger than length of vb2 buffer, so
it should be checked.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/videobuf2-core.c