]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
media: rcar_drif: fix a memory disclosure
authorKangjie Lu <kjlu@umn.edu>
Fri, 18 Oct 2019 04:47:00 +0000 (01:47 -0300)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:16:10 +0000 (08:16 -0600)
commite1c9fca85dfa7ca58baab89752626c33300a60db
tree7488891cae3efbd311e2a233ff59d5251906cb3d
parentc2e0e88c307491e93108dbbd3dc69ca4aa753ce4
media: rcar_drif: fix a memory disclosure

BugLink: https://bugs.launchpad.net/bugs/1858428
[ Upstream commit d39083234c60519724c6ed59509a2129fd2aed41 ]

"f->fmt.sdr.reserved" is uninitialized. As other peer drivers
like msi2500 and airspy do, the fix initializes it to avoid
memory disclosures.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/media/platform/rcar_drif.c