Ignore zero-length memory ranges.

This commit is contained in:
gord committed 2001-08-02 20:05:54 +00:00
1 parent cd403b1f05
commit 9e195f47c2
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -226,7 +226,7 @@ init_bios_info (void)
{
struct AddrRangeDesc *desc = (struct AddrRangeDesc *) addr;
if (desc->Type == MB_ARD_MEMORY
if (desc->Type == MB_ARD_MEMORY && desc->Length > 0
&& desc->BaseAddr + desc->Length > max_addr)
max_addr = desc->BaseAddr + desc->Length;
}