]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/gma500: fix memory disclosures due to uninitialized bytes
authorKangjie Lu <kjlu@umn.edu>
Fri, 18 Oct 2019 04:41:50 +0000 (23:41 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:16:02 +0000 (08:16 -0600)
commitccc0ebfdf590cbc4bb6887b9e3b2a1a315f95f15
tree17df5fc2c90ab3709dc511cd7bf78c4f560fc9bf
parent06200b446a78ed3c1f1debb1f5ab1bd19346dc3a
drm/gma500: fix memory disclosures due to uninitialized bytes

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

"clock" may be copied to "best_clock". Initializing best_clock
is not sufficient. The fix initializes clock as well to avoid
memory disclosures and informaiton leaks.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191018044150.1899-1-kjlu@umn.edu
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/gpu/drm/gma500/oaktrail_crtc.c