]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure
authorBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 07:02:48 +0000 (17:02 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 07:47:59 +0000 (09:47 +0200)
[ Upstream commit 15fbc3b938534cc8eaac584a7b0c1183fc968b86 ]

This is tripping up the format modifier patches.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nouveau_fbcon.c

index ee8f744dc48811a199b72cc7f93a1261eb730689..9ffb09679cc4abd4d92d5f2c9fb7b2cdc2e6539c 100644 (file)
@@ -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;