aboutsummaryrefslogtreecommitdiffstats
path: root/vbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'vbe.c')
-rw-r--r--vbe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vbe.c b/vbe.c
index fcd9d7f..f79187f 100644
--- a/vbe.c
+++ b/vbe.c
@@ -300,6 +300,10 @@ int get_edid(char *edid, int port, int skip_vbe_check)
log_err("EDID: Failure reading extension block %d\n", i);
break;
}
+ if (memcmp(edid, edid + i * EDID_BLOCK_SIZE, EDID_BLOCK_SIZE) == 0) {
+ log_err("EDID: Extension block %d is identical to main EDID block, stopping retrieval\n", i);
+ break;
+ }
}
return i * EDID_BLOCK_SIZE;