mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
drm/edid: don't return stack garbage from supports_rb
commit b196a4980f upstream.
We need to initialize this to false, because the is_rb callback only
ever sets it to true.
Noticed while reading through the code.
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d0f7cf8a1a
commit
d25d7c8f99
@@ -584,7 +584,7 @@ static bool
|
||||
drm_monitor_supports_rb(struct edid *edid)
|
||||
{
|
||||
if (edid->revision >= 4) {
|
||||
bool ret;
|
||||
bool ret = false;
|
||||
drm_for_each_detailed_block((u8 *)edid, is_rb, &ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user