[media] v4l2: vb2-dma-sg: fix potential security hole
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Wed, 2 Mar 2011 12:12:13 +0000 (09:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:54:30 +0000 (04:54 -0300)
commit941f896071c5c9120c8473c77246beaf36155247
tree3a07d6ce2ee34f74d7e8a3cae4dbf71512302cc0
parent72f1fc33a76a115e8c67f7b052bd7f6e129cda50
[media] v4l2: vb2-dma-sg: fix potential security hole

Memory allocated by alloc_page() function might contain some potentially
important data from other system processes. The patch adds a flag to
zero the allocated page before giving it to videobuf2 (and then to
userspace).

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-dma-sg.c