summaryrefslogtreecommitdiffstats
path: root/ddcprobe
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-18 22:39:34 +0000
committerMatt Wilson <msw@redhat.com>2000-07-18 22:39:34 +0000
commit197cfc33a773150f8c0d3b7a87420d9c1e4108b5 (patch)
treea11ddbeb618cde0304a727fad2ea89b6c4284c16 /ddcprobe
parent28c1b29e83ed9e39be7343c16f1a41664cbfd40c (diff)
downloadanaconda-197cfc33a773150f8c0d3b7a87420d9c1e4108b5.tar.gz
anaconda-197cfc33a773150f8c0d3b7a87420d9c1e4108b5.tar.xz
anaconda-197cfc33a773150f8c0d3b7a87420d9c1e4108b5.zip
bail if we have bogus datakudzu-r0-66
Diffstat (limited to 'ddcprobe')
-rw-r--r--ddcprobe/ddcprobe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ddcprobe/ddcprobe.c b/ddcprobe/ddcprobe.c
index d590b5e93..48b4afd64 100644
--- a/ddcprobe/ddcprobe.c
+++ b/ddcprobe/ddcprobe.c
@@ -103,6 +103,12 @@ int main(int argc, char **argv)
exit(0);
}
+ if ((edid_info->version == 0xff && edid_info->revision == 0xff)
+ || (edid_info->version == 0 && edid_info->revision == 0)) {
+ printf("EDID read failed, returned empty data\n");
+ exit(0);
+ }
+
printf("EDID ver. %d rev. %d.\n",
edid_info->version, edid_info->revision);