Skip to content

Commit 15fbc3b

Browse files
author
Ben Skeggs
committed
drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure
This is tripping up the format modifier patches. Signed-off-by: Ben Skeggs <[email protected]>
1 parent 498595a commit 15fbc3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nouveau_fbcon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ nouveau_fbcon_create(struct drm_fb_helper *helper,
315315
struct drm_framebuffer *fb;
316316
struct nouveau_channel *chan;
317317
struct nouveau_bo *nvbo;
318-
struct drm_mode_fb_cmd2 mode_cmd;
318+
struct drm_mode_fb_cmd2 mode_cmd = {};
319319
int ret;
320320

321321
mode_cmd.width = sizes->surface_width;

0 commit comments

Comments
 (0)