]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media/vivid-osd: fix info leak in ioctl
authorSalva Peiró <speirofr@gmail.com>
Wed, 7 Oct 2015 10:09:26 +0000 (07:09 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2016 19:25:55 +0000 (11:25 -0800)
commit42debcb0815cfdf8c1a5e5c40eb71f6c2547c432
tree5f47b7c7953d5778281678bc5baf760495c92ebd
parent1744494e0402065fcff7e79239177f79f79a0c4b
media/vivid-osd: fix info leak in ioctl

commit eda98796aff0d9bf41094b06811f5def3b4c333c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/vivid/vivid-osd.c