diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 10:02:48 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 11:33:14 +0300 |
commit | 15fbc3b938534cc8eaac584a7b0c1183fc968b86 (patch) | |
tree | e89dfd3e6de90f59fe8343d5cdc4e9d1b69e8da3 /drivers/gpu/drm/nouveau/nouveau_fbcon.c | |
parent | 498595abf5bd51f0ae074cec565d888778ea558f (diff) | |
download | linux-15fbc3b938534cc8eaac584a7b0c1183fc968b86.tar.xz |
drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure
This is tripping up the format modifier patches.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_fbcon.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_fbcon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index 843928ec059e..d5c23d1c20d8 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c @@ -315,7 +315,7 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, struct drm_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; |