summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-19 11:33:06 +0200
committerDave Airlie <airlied@redhat.com>2012-06-21 09:34:13 +0100
commitb196a4980ff7bb54db478e2a408dc8b12be15304 (patch)
tree22a47e6dd31e0c573df44fb4c75101d69af0bdea
parentd3decf3a0c1d28c80c76be170373f4c7a7217f09 (diff)
downloadop-kernel-dev-b196a4980ff7bb54db478e2a408dc8b12be15304.zip
op-kernel-dev-b196a4980ff7bb54db478e2a408dc8b12be15304.tar.gz
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: stable@vger.kernel.org Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/drm_edid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index eb92fe2..5873e48 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -610,7 +610,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;
}
OpenPOWER on IntegriCloud