upstream: [media] videobuf2-core: Verify planes lengths for output buffers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 10 Jul 2012 13:41:40 +0000 (10:41 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:51:38 +0000 (11:51 +0900)
commit5b19097bbc524576043b21289cdd2c6d658d12e2
tree3cee739418970bca529df5e622357baacb17f3d7
parentee0d8df293776f4de6e2d004f822efb4f2290cd5
upstream: [media] videobuf2-core: Verify planes lengths for output buffers

For output buffers application provide to the kernel the number of bytes
they stored in each plane of the buffer. Verify that the value is
smaller than or equal to the plane length.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c