summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/edid.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/edid.c b/src/lib/edid.c
index 553b0a2d7e..5925759a4c 100644
--- a/src/lib/edid.c
+++ b/src/lib/edid.c
@@ -1138,11 +1138,16 @@ int decode_edid(unsigned char *edid, int size, struct edid *out)
.conformant = EDID_CONFORMANT,
};
- dump_breakdown(edid);
-
memset(out, 0, sizeof(*out));
- if (!edid || memcmp(edid, "\x00\xFF\xFF\xFF\xFF\xFF\xFF\x00", 8)) {
+ if (!edid) {
+ printk(BIOS_SPEW, "No EDID found\n");
+ return EDID_ABSENT;
+ }
+
+ dump_breakdown(edid);
+
+ if (memcmp(edid, "\x00\xFF\xFF\xFF\xFF\xFF\xFF\x00", 8)) {
printk(BIOS_SPEW, "No header found\n");
return EDID_ABSENT;
}