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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:35:22 +0000 (16:35 +0100)
commit7a284055e4c4d2b45955532252f8e63cc41aa2e0
tree3dcbc99957001a95f8873bfc612be7243f1d61a1
parentc761b5edde95294afd8747a69798411bdce72656
drm/gma500: fix memory disclosures due to uninitialized bytes

[ 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>
drivers/gpu/drm/gma500/oaktrail_crtc.c