<p>Duncan Laurie has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20367">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lib/coreboot_tables: Zero framebuffer structure<br><br>Zero the framebuffer structure so if it is not filled in (either if<br>it is not present or if there is an error) then it does not present<br>garbage data to the payload.<br><br>This was noticed when booting a board without a display attached as<br>the payload wrote to the framebuffer at a random address.<br><br>With this change the payload can properly handle the case where a<br>display is not attached and not corrupt memory.<br><br>Change-Id: I8114d88496cd2a4f2e7f07f377fe76f3180a7f40<br>Signed-off-by: Duncan Laurie <dlaurie@chromium.org><br>---<br>M src/lib/coreboot_table.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/67/20367/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c<br>index aa6c7a5..52c18d0 100644<br>--- a/src/lib/coreboot_table.c<br>+++ b/src/lib/coreboot_table.c<br>@@ -138,7 +138,7 @@<br> static void lb_framebuffer(struct lb_header *header)<br> {<br>      struct lb_framebuffer *framebuffer;<br>-  struct lb_framebuffer fb;<br>+    struct lb_framebuffer fb = {0};<br> <br>    if (!IS_ENABLED(CONFIG_LINEAR_FRAMEBUFFER) || fill_lb_framebuffer(&fb))<br>           return;<br></pre><p>To view, visit <a href="https://review.coreboot.org/20367">change 20367</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/20367"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I8114d88496cd2a4f2e7f07f377fe76f3180a7f40 </div>
<div style="display:none"> Gerrit-Change-Number: 20367 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Duncan Laurie <dlaurie@chromium.org> </div>