Message ID | 1528916123-30139-1-git-send-email-alex.hung@canonical.com |
---|---|
State | Accepted |
Headers | show |
Series | mtrr: fix incorrect type detection | expand |
diff --git a/src/bios/mtrr/mtrr.c b/src/bios/mtrr/mtrr.c index 50c8df9d..ecd6204e 100644 --- a/src/bios/mtrr/mtrr.c +++ b/src/bios/mtrr/mtrr.c @@ -231,7 +231,7 @@ restart: entry = fwts_list_data(struct mtrr_entry*, item); if (entry->end >= end && entry->start < end) { - end = entry->start; + end = (entry->start == 0) ? 0 : (entry->start - 1); if (end < start) end = start; else