]> git.karo-electronics.de Git - linux-beck.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)
commit8023ed09cb278004a28f49844602adf23bd3615e
tree3bbd49fe59b41f8f46eaa4e22dc714d0dc045cd0
parent04074f1fdfe9eefc51bded7f45fafd8cc5d3779c
[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