From: Ben Skeggs Date: Fri, 24 Jul 2020 07:02:48 +0000 (+1000) Subject: drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure X-Git-Tag: v4.14.194~205 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1a284881b0e66537a185973d72a54c5e7b4df47f;p=users%2Fdwmw2%2Flinux.git drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure [ Upstream commit 15fbc3b938534cc8eaac584a7b0c1183fc968b86 ] This is tripping up the format modifier patches. Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin --- diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index ee8f744dc4881..9ffb09679cc4a 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c @@ -310,7 +310,7 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, struct nouveau_framebuffer *fb; struct nouveau_channel *chan; struct nouveau_bo *nvbo; - struct drm_mode_fb_cmd2 mode_cmd; + struct drm_mode_fb_cmd2 mode_cmd = {}; int ret; mode_cmd.width = sizes->surface_width;