gma/gma500: fix a memory disclosure bug due to uninitialized bytes
authorKangjie Lu <kjlu@umn.edu>
Fri, 18 Oct 2019 04:29:53 +0000 (23:29 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Oct 2019 08:59:36 +0000 (10:59 +0200)
commit57a25a5f754ce27da2cfa6f413cfd366f878db76
tree3616282ea4c466e9af894970c21e1bded0ec333c
parent2b6f5883edcc47ef6146832112a0125810d28f78
gma/gma500: fix a memory disclosure bug due to uninitialized bytes

`best_clock` is an object that may be sent out. Object `clock`
contains uninitialized bytes that are copied to `best_clock`,
which leads to memory disclosure and information leak.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191018042953.31099-1-kjlu@umn.edu
drivers/gpu/drm/gma500/cdv_intel_display.c