]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 18 Aug 2013 11:47:48 +0000 (08:47 -0300)
commit28d36c38e15cff21a8bc7194522e0113d45616f7
tree3bbd49fe59b41f8f46eaa4e22dc714d0dc045cd0
parent10aeceec305ca302a63a159e48084a6497484a5c
[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