diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-06-19 11:33:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-16 09:04:05 -0700 |
commit | dec7e3ab49dcdb1b7997008230eb18d520899119 (patch) | |
tree | d9329ee4f19940aec49b686a72751f6e0375db46 /drivers | |
parent | dbc904343caccba0ce47a51379c4a743da504a8a (diff) | |
download | linux-3.10-dec7e3ab49dcdb1b7997008230eb18d520899119.tar.gz linux-3.10-dec7e3ab49dcdb1b7997008230eb18d520899119.tar.bz2 linux-3.10-dec7e3ab49dcdb1b7997008230eb18d520899119.zip |
drm/edid: don't return stack garbage from supports_rb
commit b196a4980ff7bb54db478e2a408dc8b12be15304 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 5a18b0df828..6e38325d04a 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -574,7 +574,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; } |