[media] media/vivid-osd: fix info leak in ioctl
authorSalva Peiró <speirofr@gmail.com>
Wed, 7 Oct 2015 10:09:26 +0000 (07:09 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 20 Oct 2015 17:34:29 +0000 (15:34 -0200)
commiteda98796aff0d9bf41094b06811f5def3b4c333c
treeaa145c556c6a8e9e0f59892aaba5a98508707d7b
parent3c5be988e0b6a2f368e1659083b39e1f7ac909aa
[media] media/vivid-osd: fix info leak in ioctl

The vivid_fb_ioctl() code fails to initialize the 16 _reserved bytes of
struct fb_vblank after the ->hcount member. Add an explicit
memset(0) before filling the structure to avoid the info leak.

Signed-off-by: Salva Peiró <speirofr@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-osd.c