From: Daniel Vetter Date: Tue, 19 Jun 2012 09:33:06 +0000 (+0200) Subject: drm/edid: don't return stack garbage from supports_rb X-Git-Tag: v3.5-rc4~5^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b196a4980ff7bb54db478e2a408dc8b12be15304;p=karo-tx-linux.git 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 Reviewed-by: Adam Jackson Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index eb92fe257a39..5873e481e5d2 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; }