drm/mcde: Fix an uninitialized variable
Subsystems (4)
PATCH 1/1 drm/mcde: Fix an uninitialized variable
We never set "vblank" to "false".
Current versions of GCC will initialize it to zero automatically at certain optimization levels so that's probably why this didn't show up in testing.
Fixes 5fc537bfd000 ("drm/mcde: Add new driver for ST-Ericsson MCDE")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/gpu/drm/mcde/mcde_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/mcde/mcde_display.c +1 -1
@@ -65,7 +65,7 @@ enum mcde_dsi_formatter {void mcde_display_irq (struct mcde *mcde) {u32 mispp, misovl, mischnl; -bool vblank; +bool vblank = false;/* Handle display IRQs */ mispp =readl (mcde->regs +MCDE_MISPP );
Signature · 1 line
2.20.1
Quoted 8 lines · Dan Carpenter
We never set "vblank" to "false".
Current versions of GCC will initialize it to zero automatically at certain optimization levels so that's probably why this didn't show up in testing.
Fixes 5fc537bfd000 ("drm/mcde: Add new driver for ST-Ericsson MCDE")Signed-off-by Dan Carpenter <[email protected]>
Patch applied.
Yours,
Linus Walleij