提交 b196a498 编写于 作者: D Daniel Vetter 提交者: Dave Airlie

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: NDaniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: NAdam Jackson <ajax@redhat.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 d3decf3a
...@@ -610,7 +610,7 @@ static bool ...@@ -610,7 +610,7 @@ static bool
drm_monitor_supports_rb(struct edid *edid) drm_monitor_supports_rb(struct edid *edid)
{ {
if (edid->revision >= 4) { if (edid->revision >= 4) {
bool ret; bool ret = false;
drm_for_each_detailed_block((u8 *)edid, is_rb, &ret); drm_for_each_detailed_block((u8 *)edid, is_rb, &ret);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册