Use the new start for the offset, not the old end.

This commit is contained in:
Nate Lawson 2004-08-20 17:04:49 +00:00
parent 91fa7ba605
commit 1531578c50

View File

@ -539,7 +539,7 @@ acpi_reslist_add(device_t dev, int type, int rid, u_long start, u_long count)
} else if (start >= rle->start && start <= rle->end) {
if (end > rle->end) {
start = rle->end + 1;
count = end - rle->end + 1;
count = end - start + 1;
break;
} else
return (EEXIST);