Skip to content

Commit b196a49

Browse files
danvetairlied
authored andcommitted
drm/edid: don't return stack garbage from supports_rb
We need to initialize this to false, because the is_rb callback only ever sets it to true. Noticed while reading through the code. Cc: [email protected] Signed-Off-by: Daniel Vetter <[email protected]> Reviewed-by: Adam Jackson <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent d3decf3 commit b196a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_edid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static bool
610610
drm_monitor_supports_rb(struct edid *edid)
611611
{
612612
if (edid->revision >= 4) {
613-
bool ret;
613+
bool ret = false;
614614
drm_for_each_detailed_block((u8 *)edid, is_rb, &ret);
615615
return ret;
616616
}

0 commit comments

Comments
 (0)