提交 2f6dc79a 编写于 作者: N Neil Armstrong 提交者: Anatolij Gustschin

edid: fix edid_get_timing_validate() mode_valid lookup

Add a condition to the break in the modes lookup, without this
when the first mode is not valid, then edid_get_timing_validate()
return an error instead of checking the next modes.

Fixes: 1c1ed441 ("edid: add edid_get_timing_validate() variant to filter out edid modes")
Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com>
上级 970baf16
......@@ -202,7 +202,9 @@ int edid_get_timing_validate(u8 *buf, int buf_size,
timing);
else
timing_done = true;
break;
if (timing_done)
break;
}
}
if (!timing_done)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册