]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/vmwgfx: Initialize drm_mode_fb_cmd2
authorZack Rusin <zackr@vmware.com>
Wed, 2 Mar 2022 15:24:24 +0000 (10:24 -0500)
committerZack Rusin <zackr@vmware.com>
Fri, 13 May 2022 14:29:24 +0000 (10:29 -0400)
commit3059d9b9f6aa433a55b9d0d21b566396d5497c33
treeb848357bc7132b9aa13f822afcbae7e67eabe7ab
parent1d6595b4cd47acfd824550f48f10b54a6f0e93ee
drm/vmwgfx: Initialize drm_mode_fb_cmd2

Transition to drm_mode_fb_cmd2 from drm_mode_fb_cmd left the structure
unitialized. drm_mode_fb_cmd2 adds a few additional members, e.g. flags
and modifiers which were never initialized. Garbage in those members
can cause random failures during the bringup of the fbcon.

Initializing the structure fixes random blank screens after bootup due
to flags/modifiers mismatches during the fbcon bring up.

Fixes: dabdcdc9822a ("drm/vmwgfx: Switch to mode_cmd2")
Signed-off-by: Zack Rusin <zackr@vmware.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: <stable@vger.kernel.org> # v4.10+
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Maaz Mombasawala <mombasawalam@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220302152426.885214-7-zack@kde.org
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c